JGravesNBS
Registered User.
- Local time
- Today, 13:02
- Joined
- Apr 5, 2014
- Messages
- 58
I Need Microsoft Access VBA code to display active mdb database Reference information in the Immediate Window
Here's what I have:
Sub ShowReferencesInImmediateWindow()
Dim ref As Reference
For Each ref In Application.CurrentDb.References
Debug.Print ref.Name & " - " & ref.FullPath
Next ref
End Sub
When I run the Sub I get the following error with Reference highlighted:
Microsoft Visual Basic for Applications
Compile error: Method or data member not found
For Each ref In Application.CurrentDb.References
I need this to run on Access 2000 through Access 2019
11397335
Here's what I have:
Sub ShowReferencesInImmediateWindow()
Dim ref As Reference
For Each ref In Application.CurrentDb.References
Debug.Print ref.Name & " - " & ref.FullPath
Next ref
End Sub
When I run the Sub I get the following error with Reference highlighted:
Microsoft Visual Basic for Applications
Compile error: Method or data member not found
For Each ref In Application.CurrentDb.References
I need this to run on Access 2000 through Access 2019
11397335
Last edited: