Solved

Read the tables' last modified time, and created time....

Posted on 2003-12-03
4
325 Views
Last Modified: 2009-10-27
I would like to know how could I read the times (last modified time, created time) of my tables?
0
Comment
Question by:rickypk
  • 2
4 Comments
 
LVL 30

Expert Comment

by:nmcdermaid
Comment Utility
This query will give you what you want:

SELECT MSysObjects.DateUpdate, MSysObjects.DateCreate, MSysObjects.Name
FROM MSysObjects;


MSysObjects is a system table which can be viewed by pressing Tools/Options then tick System Objects on the view tab


0
 
LVL 30

Accepted Solution

by:
nmcdermaid earned 500 total points
Comment Utility
SELECT MSysObjects.DateUpdate, MSysObjects.DateCreate, MSysObjects.Name
FROM MSysObjects
WHERE MSysObjects.Type=1;

will list only tables (including system tables)
0
 

Expert Comment

by:cgedemer
Comment Utility
There's a couple of ways to accomplish this.  The easiest is with the following sql statement:

"SELECT DateUpdated, DateCreated FROM MSysObjects WHERE Name='<table name>';"  

To view this table goto:  Tools->Options and check System Objects

or if you just want to quickly view the date you can change the your view in the database window to Details (View->Details)

In VBA there is also a .DateCreated & .LastUpated property for the tableDef object.  There's an example of how to use this property in MS-Access Help.  Hope this helps you.
0
 
LVL 77

Expert Comment

by:peter57r
Comment Utility
SELECT MSysObjects.DateUpdate, MSysObjects.DateCreate, MSysObjects.Name
FROM MSysObjects
WHERE MSysObjects.Type=1 or MsysObjects.Type = 6;

to include linked tables as well as local table.

Pete
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now