M
Morten Snedker
I'm trying to retrieve the "Last changed" property of a table using
this code:
Dim obj As AccessObject, dbs As Object, prp As Property
Set dbs = Application.CurrentData
For Each obj In dbs.AllTables
If Left(obj.Name, 4) <> "msys" Then
For Each prp In obj.Properties
Debug.Print prp.Name
Next prp
End If
Next obj
It fails on the "For Each prp" -line with at runtime error 2467,
stating that i'm trying to refer to an object that i either closed or
has been deleted.
It's an mdb-file with internal tables (not linked). What am I doing
wrong?
Regards /Snedker
this code:
Dim obj As AccessObject, dbs As Object, prp As Property
Set dbs = Application.CurrentData
For Each obj In dbs.AllTables
If Left(obj.Name, 4) <> "msys" Then
For Each prp In obj.Properties
Debug.Print prp.Name
Next prp
End If
Next obj
It fails on the "For Each prp" -line with at runtime error 2467,
stating that i'm trying to refer to an object that i either closed or
has been deleted.
It's an mdb-file with internal tables (not linked). What am I doing
wrong?
Regards /Snedker