Well, since Access doesn't have this date (as far as I know), you will have to
store it someplace. Also, you will have to be responsible for initiating the
action to store it.
You can either store the date in a field in a table in the database or as a
custom property. I use the following two functions to create, modify, and
retrieve a date as a custom property.
Public Sub sSetVersionDate(Optional dteDate As Date)
Dim db As DAO.Database
Dim prpNew As DAO.Property
Dim errLoop As Error
If dteDate = CDate(0) Then dteDate = Date
Set db = CurrentDb()
' Attempt to set the property.
On Error GoTo Err_sSetVersionDate
db.Properties("VersionDate") = dteDate
On Error GoTo 0
Exit Sub
Err_sSetVersionDate:
' Error 3270 means that the property was not found.
If DBEngine.Errors(0).Number = 3270 Then
' Create property, set its value, and append it to the
' Properties collection.
Set prpNew = db.CreateProperty("VersionDate", _
dbDate, dteDate)
db.Properties.Append prpNew
Resume Next
Else
' If different error has occurred, display message.
For Each errLoop In DBEngine.Errors
MsgBox "Error number: " & errLoop.Number & vbCr & _
errLoop.Description
Next errLoop
End If
End Sub
Public Function fGetVersionDate()
fGetVersionDate = CurrentDb().Properties("VersionDate")
End Function