Report "looping"

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
michaeln_(Guest)
Posts: 1
Joined: Tue Oct 10, 2017 12:44 pm

Report "looping"

Post by michaeln_(Guest) » Wed Nov 27, 2002 1:43 pm

I^m fairly new to R&R (running version 8) and have a question.____I need to write a report that shows average value for each inventory item. There is an inventory dbf that shows each lot and its purchase price. So, for any particular stock item, there may be 10 records with 10 different purchase prices in the inventory file.____The problem is I need to go through the inventory dbf, find every lot for the particular stock item, then run a calculation to determine the average value then move on to the next stock item and start over again...____How do I step through the stock dbf (which contains a unique record for each stock item) then refer to the inventory dbf to pull all of the records for this particular item??

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: Report "looping"

Post by kfleming » Wed Nov 27, 2002 4:26 pm

Use stock as the master file and create a scan relation to the inventory file. Sort and group by stock number and then create a total that is an average of the purchase price in the inventory file with a reset by stock number. Place this total on a stock group footer and you will have your average price.__Kathleen__R&R Support

Post Reply