I am trying to get the last modification date of database content, to know when to refresh some data. I thought this would work:
Static ADOCat As ADOX.Catalog
If Not ADOCat Is Nothing Then Set ADOCat = New ADOX.Catalog
If ADOCat.ActiveConnection Is Nothing Then ADOCat.ActiveConnection = "Provider=Microsoft.ace.OLEDB.12.0; Data Source=X:\MANUAL_ANALYSIS.accdb; Mode=Read"
If LastModificationDate <> ADOCat.Tables("ANALYSES").DateModified Then
bRefreshData = True
LastModificationDate = ADOCat.Tables("ANALYSES").DateModified
End If
However, the .DataModified returns the date when the table structure was changed, such as removing/adding fields, not the database content modification. Is there another method that can find this out for me? /J