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

How can I extract the date of last update / modified ?

Status
Not open for further replies.

Wes1961

Technical User
Aug 21, 2001
72
US
I have a user that generates data and then emails the table to vendors. Sometimes they forget to upadte the data before they email.

When I look at the table view with details I can see the attributes of modified and created. I want to able to extract the modified attribute and use in in a comparison to make sure that the table has a current date.

How can I do this?
 
this should help:

Private Sub Command2_Click()
Dim db As DAO.Database, t As DAO.TableDef
Set db = CurrentDb()
Set t = db.TableDefs("DBNames")

MsgBox "Name: " & t.Name _
& vbCrLf & _
"Last Modified: " & t.LastUpdated

db.Close
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top