INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Count Number Of Times Reports Are Opened?

Count Number Of Times Reports Are Opened?

(OP)
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!!

RE: Count Number Of Times Reports Are Opened?


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.

RE: Count Number Of Times Reports Are Opened?

(OP)
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

RE: Count Number Of Times Reports Are Opened?



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: Microsoft: Access Modules (VBA Coding) is most appropriate for your questions on this matter

RE: Count Number Of Times Reports Are Opened?

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close