Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Date Time Stamp of Query Executions
Shawn Bumgarner 
     
6 months ago
I have a database that I created a lot of different queries in and since it needed to see a list of queries organized by the last modified date (to find the last set of queries I had created / edited) I used the MSYS table along with a helper table to make a new query to return the list of all queries and their last mod date / time.  I was wondering if - hidden somewhere in the system tables - is the date / time stamp a given query ran / executed.  If so this would be very useful for understanding say, when a process someone else ran from vba code failed at - what the last query in a list of queries in the code actually succeeded.  Has anyone done this?  Is it stored somewhere in the system tables where I could create a query to return it?  Thanks!
Shawn Bumgarner OP  @Reply  
     
6 months ago
Sorry - first line above should read "...since *I* needed to see a list of queries..."
Richard Rost  @Reply  
          
6 months ago
Shawn Nope, Access does not track that. There is no system table anywhere that stores the last time a query was executed. The MSys objects only keep metadata like created date, modified date, type, flags, and so on. They do not log usage. Once a query runs, Access forgets it ever happened unless you build your own logging system in VBA. If the user wants that level of tracking, the only option is to wrap every call in code and log the name, timestamp, and status to a custom table.

That wouldn't be that hard to do though in code instead of just doing a DoCmd.OpenQuery, just make your own RunQuery function and in that function have it log it and then run the query.
Alex Hedley  @Reply  
           
6 months ago
Not quite what you want but related:
Data Macro
Log Changes to Tables

You might also be able to use
MS Learn: LogEvent macro action with the USysApplicationLog
Shawn Bumgarner OP  @Reply  
     
6 months ago
Thanks Richard and Alex! After I posted I thought to ask CoPilot and it basically said the same thing - wishful thinking on my part that it might be part of the application in some way!  lol

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 6:57:19 AM. PLT: 1s