Last time database was modified.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to capture the last time the database was modified and have it
displayed on my main form when opening the Access application. Currently this
information can be found under properties for the database itself, but I want
to capture that information.
 
You can get file infomation using the FileSystemObject.
Dim fs As Object
Dim f As Object
Dim strModDate As String

Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(CurrentProject.FullName)
strModDate = f.DateLastModified
Debug.Print strModDate
Set f = Nothing
Set fs = Nothing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top