Using code to delete reports

J

JimP

I'm using code to delete a large number of reports in an mdb - using
Application.CurrentProject.AllReports as the source. Two things are
happening.

1. I am hitting an error on a particular report claiming it doesn't
exist,when it does.

2. Then, when manually deleting the report, I get a mesage that it doesn't
exist

2. The database window for all reports is empty, yet when I compact/repair,
a number of reports re-appear.

I suspect corrupt code behind some of the reports - suggestions?
 
Top