You tried to use the obsolete OpenQueryDef method on a query that is in a database opened for read-only access.
The database is read-only for one of the following reasons:
-
You used the OpenDatabase method and opened the database for read-only access.
-
The database file has been defined as read-only in your network operating system.
-
In a network environment, you do not have write privileges for the database file.
Close the database, resolve the read-only condition, and then reopen it for read/write access.