Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public Enum DateChoice
created = 0
Modified = 1
End Enum
Public Function GetTableDate(TableName As String, Choice As DateChoice) As Date
Dim tdf As TableDef
Dim db As DAO.Database
Set db = CurrentDb
For Each tdf In db.TableDefs
If tdf.Name = TableName Then
Set tdf = db.TableDefs(TableName)
Exit For
End If
Next tdf
If tdf Is Nothing Then
MsgBox "No table named " & TableName & "."
Else
If Choice = created Then
GetTableDate = tdf.DateCreated
ElseIf Choice = Modified Then
GetTableDate = tdf.LastUpdated
End If
End If
End Function