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!

Extract Table Properties with VBA 1

Status
Not open for further replies.

ineedhelplease

Technical User
Dec 18, 2002
18
US
I am able to get the names of all the tables in my access database using the following VBA:

Dim lpTblDef As TableDef

With CurrentDb
For Each lpTblDef In .TableDefs

MsgBox lpTblDef.Properties("name")

Next lpTblDef
End With

I am not able to figure out how to get the modify date or create date for each table. Any help with this would be appreciated.

Thank you.
 
You might want to try the undocumented msysobjects table. Create a query with SQL of:
Code:
SELECT msysobjects.name, msysobjects.DateCreate, msysobjects.DateUpdate
FROM msysobjects
WHERE (((msysobjects.name) Not Like "msys*") AND ((msysobjects.Type)=1));

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top