Hi all,
I have a report, which by necessity contains 12 sub reports. I print it with a "Print" cmd button on the form which is the form with the data I want to print, which also contains 12 sub forms. The "Print" cmd button opens the report showing the desired record(s) by using the WhereCondition. As I open the report I set the visible property of the form to No, so that I can easily return to the same record(s) on the form when the printing is completed by just setting the form's visible property to Yes when the report closes.
I need to first open the report with acViewPreview and when I do the report previews correctly, but when I click the print button on the report toolbar, the error message "Cannot open any more databases" appears 6 times, then the report prints but is missing 6 of the sub reports.
I have found by testing that if I close the from, instead of just making it not visible, that my report will print without problems. In both the form and the report, I use the same query as the data source for the form or report, and the sub reports and sub forms use tables as their data source. I can provide more exact details if need be.
I read on another forum that this error message is the result of an internal constraint within Access, but there was so little information available that I'm seeking the assistance of someone who can shed a little more light on the problem, and to see if there are any fresh ideas on a way to fix the problem without extensive redesign of the way I print this particular report.
Thanks a lot!!
I have a report, which by necessity contains 12 sub reports. I print it with a "Print" cmd button on the form which is the form with the data I want to print, which also contains 12 sub forms. The "Print" cmd button opens the report showing the desired record(s) by using the WhereCondition. As I open the report I set the visible property of the form to No, so that I can easily return to the same record(s) on the form when the printing is completed by just setting the form's visible property to Yes when the report closes.
I need to first open the report with acViewPreview and when I do the report previews correctly, but when I click the print button on the report toolbar, the error message "Cannot open any more databases" appears 6 times, then the report prints but is missing 6 of the sub reports.
I have found by testing that if I close the from, instead of just making it not visible, that my report will print without problems. In both the form and the report, I use the same query as the data source for the form or report, and the sub reports and sub forms use tables as their data source. I can provide more exact details if need be.
I read on another forum that this error message is the result of an internal constraint within Access, but there was so little information available that I'm seeking the assistance of someone who can shed a little more light on the problem, and to see if there are any fresh ideas on a way to fix the problem without extensive redesign of the way I print this particular report.
Thanks a lot!!