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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Last Date Access Database was Used 1

Status
Not open for further replies.

JohnBates

MIS
Feb 27, 2000
1,995
US
I think I know the answer and I think it is 'No' but why not ask the experts.

Is there any way I can determine when this Access 2003 database was last used? Other than the obvious steps like checking the last modified date for the data and log files?

Thanks, John
 
I guess it depends upon what you mean by "used"? For instance, if you open an Access database, do nothing, and then close it, it still updates the date last modified.

There are last modified dates for Access objects within the database as well, in case that's what you're after. So, if you just want to see that, you could either manually look in the Object viewer tab.. suddenly I can't remember the name of that. [blush]

Another option - if you want to capture this somewhere - you could use VBA to loop through and capture this value from all the objects, and load that into a table for reference.

"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57
 
Thanks King James Version.

So if simply opening, whether anything got changed or not, updates the last modified date - that will meet my needs.

I have the same database name in multiple folder paths - that's what triggered my question.

John
 
Also... if you ever want to look at the objects in a database to see when they were updated, keep this in mind:

The "Last Update" for an object refers to the structure itself, not necessarily the data contained. So, for instance, if you're looking at tables. If the table hasn't been modified at all in 8 years, but new records were added yesterday, then the table wasn't updated, but it does have new/current data. So in that case, you'd have to look at a date field in the database table, if there is one. Otherwise, you'd have to look at a field relating to when records are added.. I don't remember off-hand if there is such a field, but you can look in VBA in the DAO.TableDefs collection.

"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top