I am having trouble declaring a variable as a Database Object. I can go into other databases I have created and it will declare perfectly fine. Is there a library I need to include?
I have also tried to declare it as a variant but no luck there either. Any help would be great.
Code:
Dim db As Database 'This is how I have it
Set db = CurrentDB
'...
db.Execute strSQL
I have also tried to declare it as a variant but no luck there either. Any help would be great.