Solved

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

Posted on 2003-12-03
4
359 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Familiarize people with the process of utilizing SQL Server functions 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 Ac…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

752 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