burlymerly
Programmer
I have built a report for printing an invoice that mirrors our printed 4 part hardcopy. Page 1, Page2, etc. with only one label different to indicate where each page should be distributed (i.e. customer, field office, main office...).
I built page 1 first, then copied and pasted this report 3 more times. Each copy was then edited to change the label file. I then added these subreports to page 1 with page breaks between.
All has been working well, but today I have added some qualifying code (to determine which RecordSource should be used, depending on which form calls the report) to the OnOpen event of the report. I now find that the page 1 OnOpen event runs once as it should, but the remaining subreports OnOpen events run multiple times.
Any ideas on how to track down the reason for this behavior? Is this approach wrong? Is there a better way?
Thanks for your help in advance
I built page 1 first, then copied and pasted this report 3 more times. Each copy was then edited to change the label file. I then added these subreports to page 1 with page breaks between.
All has been working well, but today I have added some qualifying code (to determine which RecordSource should be used, depending on which form calls the report) to the OnOpen event of the report. I now find that the page 1 OnOpen event runs once as it should, but the remaining subreports OnOpen events run multiple times.
Any ideas on how to track down the reason for this behavior? Is this approach wrong? Is there a better way?
Thanks for your help in advance