Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count Number Of Times Reports Are Opened? 1

Status
Not open for further replies.

dmon000

Technical User
Sep 9, 2003
79
US
Is there a VBA routine which will count and store the number of times any report in the database is used?

We have a slew of reports that were designed over the years and want to find out which ones we can ditch.

Thanks!!
 

Make a table to store the report name and the counts it was opened. On the OnOpen event of each report, update the counts by one for that one.
 
Thanks for the tip Jerry.
BUT, is there a procedure that can be loaded when the database opens, rather than have to put an on open event in each report. There are hundreds of reports scattered over more than 15 mdb files.

Thanks again
 


Sorry, but I am not aware of any.

Of course there is always the challlenge to open all 15 mdb files, loop all reports and add the extra code, using VBA.

Forum705 is most appropriate for your questions on this matter
 
I count each time a report is run in my databases.

First, I put all my report names in one "Report Table", with an automuber as each report's 'report_id'. Then I run all my reports from one Access form, with the report names listed in a drop down box on that form. When a user chooses a report from the drop down box and runs it, VBA code behind the form inserts the report's report_id (the bound column in the drop down box) into a "Report Run" table, along with who ran it, when, and of course, the report's name. Then, counting how many times each report was run can be as simple as querying that "Report Run" table on the various report_id's. Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top