I am trying to access the CurrentDb.QueryDefs collection, but the CurrentDb object is nothing!
Here is my simple code=
I get the "Object variable or With block variable not set" error message. Is this because I am using an Access Database Project, and the database is actually stored on a SQL server?
Here is my simple code=
Code:
debug.print CurrentDb.QueryDefs.Count
I get the "Object variable or With block variable not set" error message. Is this because I am using an Access Database Project, and the database is actually stored on a SQL server?