Hi all. (Sorry this is so long)I am reading a billing data base and creating a listing of the billing records by type of service being billed for. These records are generated by many customers and many customers have more than one billing record for service received. Access easily created the report that I needed. But now my user wantes to know how many customers received each service, counting each customer only once for the service they received but to continue to list them for all of the services that they received.
Is there an Event that I can use to add code after a record has been read to check and see if it is the same customer number as the last record read and if it is not the same then add it to a customer counter. I would then print that counter and it's label before moving onto the next type of billing service.
For example:
Billing Service - Group Therapy
Customer # Date of Service Amount Billed
0001 01/02/07 25.00
0001 01/09/07 25.00
0002 01/05/07 25.00
0005 01/02/07 25.00
Totals for Group Therapy 100.00 Cust= 3
The first two lines are generated by the group section header. The next four lines are generated by the detail section and the last line is generated by the group section footer.
Is it possible in Access to read a record/row, test to see if it equals the last customer id read and if it does not to add it to a counter which can then be printed in the footer for that group?
Thanks so much for you help. I can do this in VB6 but the user wants it in Access if possible.
Is there an Event that I can use to add code after a record has been read to check and see if it is the same customer number as the last record read and if it is not the same then add it to a customer counter. I would then print that counter and it's label before moving onto the next type of billing service.
For example:
Billing Service - Group Therapy
Customer # Date of Service Amount Billed
0001 01/02/07 25.00
0001 01/09/07 25.00
0002 01/05/07 25.00
0005 01/02/07 25.00
Totals for Group Therapy 100.00 Cust= 3
The first two lines are generated by the group section header. The next four lines are generated by the detail section and the last line is generated by the group section footer.
Is it possible in Access to read a record/row, test to see if it equals the last customer id read and if it does not to add it to a counter which can then be printed in the footer for that group?
Thanks so much for you help. I can do this in VB6 but the user wants it in Access if possible.