I am currently looking at training manual and have been asked to enter the following code as a module.
Sub PrintRecords()
Dim DBCURR As Database
Set DBCURR = CurrentDb
Debug.Print DBCURR.Name
End Sub
But when i try and test it in the debug/Immediate Window all i get is an error message
"Can't find project or library".
I have looked at the Access help but it gives a similar set of code which i copied in and tried to test and that came up with the same error. What am i doing wrong?
Sub PrintRecords()
Dim DBCURR As Database
Set DBCURR = CurrentDb
Debug.Print DBCURR.Name
End Sub
But when i try and test it in the debug/Immediate Window all i get is an error message
"Can't find project or library".
I have looked at the Access help but it gives a similar set of code which i copied in and tried to test and that came up with the same error. What am i doing wrong?