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

A97: Programatically determine table creation date

Status
Not open for further replies.

RonMcIntire

Technical User
Oct 12, 2002
166
US
All:

In my application, I use a table of members from an Access database (generated by a parent society to which my chapter belongs) to create an on-line directory of officers, members and other information. I only access this source table and DO NOT in anyway alter its contents. Thus, my "source" information always remains just as it comes from the society.

Since I download the data from the society to update my on-line directory it would be helpful if I could always know the creation date of the "source" table so I can be sure I am using the most current data.

Can anyone tell me how to programatically determine the creation date of a table within a database?

Thanks,

Ron McIntire
 
HI

try

Dim db As Database
Dim qdf As QueryDef
'
Set db = CurrentDb()
Set qdf = db.QueryDefs(0)
Debug.Print qdf.DateCreated Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Ron,
Try this bit of code:

Dim db As Database
Dim tbl As TableDef
Set db = CurrentDb
For Each tbl In db.TableDefs
Debug.Print "Table: " & tbl.Name & " ***"
Debug.Print " created: " tbl.DateCreated
Next tbl HTH, [pc2]
Randy Smith
California Teachers Association
 
Ken Reay and Randy Smith:

Thanks for your help. That's exactly what I needed. Your responses were timely and helpful.

Ron McIntire

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top