Thanks gizzy17. way to go.. I have another question.
How to joint more than two hold files together to get a report?
Use the above sample, I need to generate another report like:
Week-Ending Type1 Type2 Type3 Type4 Received
06Jul07 20 10 5 7 56
13Jul07 15 17 12 4 65
20Jul07 18 19 1 12 45
27Jul07 5 10 11 20 20
Total 58 56 29 43 181
For the column of Received, I can get from another hold file, it has same rows as the first hold file...