T
tcb
How do I use this code which was originally posted by Douglas Steele
(link below) to loop through the objects of a db that is not the
current db, e.g. "C:\Another.mdb"
Sub AllForms()
Dim obj As AccessObject, dbs As Object
Set dbs = Application.CurrentProject
' Search for open AccessObject objects in AllForms collection.
For Each obj In dbs.AllQueries
Debug.Print obj.Name
Next obj
End Sub
http://groups.google.com/group/micr...p+through+tables+msys&rnum=3#f56badf2ed689cc3
(link below) to loop through the objects of a db that is not the
current db, e.g. "C:\Another.mdb"
Sub AllForms()
Dim obj As AccessObject, dbs As Object
Set dbs = Application.CurrentProject
' Search for open AccessObject objects in AllForms collection.
For Each obj In dbs.AllQueries
Debug.Print obj.Name
Next obj
End Sub
http://groups.google.com/group/micr...p+through+tables+msys&rnum=3#f56badf2ed689cc3