Solved

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

Posted on 2003-12-03
4
352 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
ID: 9866249
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
ID: 9866262
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
ID: 9866369
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
ID: 9866398
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

828 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