I have a report which contains 5 sub-reports in the report header and 1 sub-report in the report footer. Each of the sub-reports is based on different data to the main report. I have a form where I select whether I want to run a report for, say, all states / counties or for a specific state / county which I choose from an automatically populated combo box containing only valid states / counties.
I have page numbers (Page x of y) on every page of the report except the first page (the title page showing which state / county I have selected for the report (or “All”)) and I programmatically ensure that new sub-reports and the main report detail section start on an odd page so that it publishes as you would for a book. Everything above works very well.
Now I have a problem I have been unable to find a solution to. If I run the report for all counties, I want all aspects of the report and sub-reports to run and show in the printout. Again, this works very well. However, if I run a selected county, I do not want the first 3 sub-reports to run or print even though they (would) contain data.
So far, I have been unable to find a solution. I am using Access 2003.
Is anyone able to assist or point me in the right direction please.
I have page numbers (Page x of y) on every page of the report except the first page (the title page showing which state / county I have selected for the report (or “All”)) and I programmatically ensure that new sub-reports and the main report detail section start on an odd page so that it publishes as you would for a book. Everything above works very well.
Now I have a problem I have been unable to find a solution to. If I run the report for all counties, I want all aspects of the report and sub-reports to run and show in the printout. Again, this works very well. However, if I run a selected county, I do not want the first 3 sub-reports to run or print even though they (would) contain data.
So far, I have been unable to find a solution. I am using Access 2003.
Is anyone able to assist or point me in the right direction please.