I am trying to force the Detail section of my report to repeat for each month between two dates.
I have tried doing a VB counter to repeat the detail in On_Format event, changing the dates using Unbound fields based on the counter. However, the On_Format event only occurs once and bound data in a sub-report does not update.
IS THERE A WAY to use a calendar as a record source? For example, an automatic record (refreshed, new Detail) for each month between StartDate and EndDate. That way, I can repeat and all data will tie.
Right now, the only way I can get my report to output correctly is to have a table with as many dummy records as months I want to show up on my report. This is so cumbersome.
Example of a Table:
StartDate EndDate ChargeType ChargeAmount
1/1/04 4/30/04 Gas $100
1/1/04 3/31/04 Insurance $50
4/1/04 4/30/04 Insurance $75
Desired Output (notice no month of February)
January
Total Charges 150
February
Total Charges 150
March
Total Charges 150
April
Total Charges 175
I have tried doing a VB counter to repeat the detail in On_Format event, changing the dates using Unbound fields based on the counter. However, the On_Format event only occurs once and bound data in a sub-report does not update.
IS THERE A WAY to use a calendar as a record source? For example, an automatic record (refreshed, new Detail) for each month between StartDate and EndDate. That way, I can repeat and all data will tie.
Right now, the only way I can get my report to output correctly is to have a table with as many dummy records as months I want to show up on my report. This is so cumbersome.
Example of a Table:
StartDate EndDate ChargeType ChargeAmount
1/1/04 4/30/04 Gas $100
1/1/04 3/31/04 Insurance $50
4/1/04 4/30/04 Insurance $75
Desired Output (notice no month of February)
January
Total Charges 150
February
Total Charges 150
March
Total Charges 150
April
Total Charges 175