G
Guest
Hi, Guys!
I have a fairly large Access 2002 database containing some 350 queries,
forms, reports and tables. (I say this because I'm not sure of any
limitations relating to this in Access.) As part of my VB logic in one of
the forms, I copy a report to a different name, run the report, then delete
it. (This is done so that the file name will be unique when the .pdf output
is created.)
Yesterday, after adding a new field and a couple of queries to the system, I
performed this copy/print/delete routine and received the "MS Access has
encountered an error and will close" message. After doing a little research,
the error is generated each time I try to delete a specific report (one of
the copied ones). The report name shows in the list in the database window.
If I manually select it, the error occurs. If I try to use VB code to delete
it, the error occurs.
In addition, the selection process for reports is very slow. For example,
when I manually select (highlight) one report, then manually select another
one, it takes the system 3-5 seconds to highlight the second entry. There
are only 27 reports (including the "bad" one) and I do not see this slow
selection in the tables, queries or forms window even though there are far
more queries and tables.
I've tried doing a compact and repair, and have even copied the database to
a new name. Have the same result in the copied database. The new field
added yesterday was not related to anything on the "problem" report.
Any way to fix this?
Thanks,
BruceS
I have a fairly large Access 2002 database containing some 350 queries,
forms, reports and tables. (I say this because I'm not sure of any
limitations relating to this in Access.) As part of my VB logic in one of
the forms, I copy a report to a different name, run the report, then delete
it. (This is done so that the file name will be unique when the .pdf output
is created.)
Yesterday, after adding a new field and a couple of queries to the system, I
performed this copy/print/delete routine and received the "MS Access has
encountered an error and will close" message. After doing a little research,
the error is generated each time I try to delete a specific report (one of
the copied ones). The report name shows in the list in the database window.
If I manually select it, the error occurs. If I try to use VB code to delete
it, the error occurs.
In addition, the selection process for reports is very slow. For example,
when I manually select (highlight) one report, then manually select another
one, it takes the system 3-5 seconds to highlight the second entry. There
are only 27 reports (including the "bad" one) and I do not see this slow
selection in the tables, queries or forms window even though there are far
more queries and tables.
I've tried doing a compact and repair, and have even copied the database to
a new name. Have the same result in the copied database. The new field
added yesterday was not related to anything on the "problem" report.
Any way to fix this?
Thanks,
BruceS