J
JB
I have a monthly calendar style report that is similar to the samples
that Duane Hookum advises people to use. I modified a sample he
referred me to and it looks good but has a printing problem. This
report uses a table, tblWeekOf, to generate the weekly dates. It uses
2 small subreports that grab data to print in each of the calendar
boxes. All of that is great and looks good in Print Preview mode.
When I print the report, I get an error 3048 "too many databases
open". The data prints great for Monday-Friday, the first five
columns. On the Saturday column, 6th column from left to right, one
subreport's data does not show. On the Sunday column, last column over
from left to right, neither subreport prints any data. From what I
have read this may be some sort of memory or handle limit problem. I
can not find anything by breakpoints or tracing code.
The subreports do not contain much data. The first subreport is based
on a simple query with two tables and has a result of 238 records.
Those records are then filtered by the subreport when it is attached
to the main calendar report and matched by date. The second subreport
is based on a complex query that uses a mix of 11 tables and nested
queries. Most of the content for this second query is generated
dynamically with form code but not all of it. It returns a result of
28 records that are also filtered and matched by date to the main
calendar report.
I have already checked to make sure that all the DB and rst variables
are set to nothing and closed. The actual report has almost no code in
it.
Can anyone give me suggestions on what to check or change?
that Duane Hookum advises people to use. I modified a sample he
referred me to and it looks good but has a printing problem. This
report uses a table, tblWeekOf, to generate the weekly dates. It uses
2 small subreports that grab data to print in each of the calendar
boxes. All of that is great and looks good in Print Preview mode.
When I print the report, I get an error 3048 "too many databases
open". The data prints great for Monday-Friday, the first five
columns. On the Saturday column, 6th column from left to right, one
subreport's data does not show. On the Sunday column, last column over
from left to right, neither subreport prints any data. From what I
have read this may be some sort of memory or handle limit problem. I
can not find anything by breakpoints or tracing code.
The subreports do not contain much data. The first subreport is based
on a simple query with two tables and has a result of 238 records.
Those records are then filtered by the subreport when it is attached
to the main calendar report and matched by date. The second subreport
is based on a complex query that uses a mix of 11 tables and nested
queries. Most of the content for this second query is generated
dynamically with form code but not all of it. It returns a result of
28 records that are also filtered and matched by date to the main
calendar report.
I have already checked to make sure that all the DB and rst variables
are set to nothing and closed. The actual report has almost no code in
it.
Can anyone give me suggestions on what to check or change?