Z
Zoe
I would like to display the date that the database was last modified on a form.
I found a message in the newsgroup (I can't seem to find it again) that
suggested this code:
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
However, I need a little more direction. Can someone please provide some
basic assistance? I'm assuming that the code is assigned to an event on the
label, but I'm not sure if this is correct or what event to use. Also, do I
modify the CurrentProject.FullName? If so, to what?
Thanks!
I found a message in the newsgroup (I can't seem to find it again) that
suggested this code:
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
However, I need a little more direction. Can someone please provide some
basic assistance? I'm assuming that the code is assigned to an event on the
label, but I'm not sure if this is correct or what event to use. Also, do I
modify the CurrentProject.FullName? If so, to what?
Thanks!