G
Guest
I can successfully run some codes in a standard module and create recordsets
for an query. However, if I want to run this module again, I will always get
the above run time error and a msgbox "The database has been placed in a
state by User"Admin" on machine "xxxx" that prevents if from opened or
locked". I can only then run the module by shutting down Access and then run
it again.
Using debug, it leads me to this line
DB.open strconnection
I close my database connection and set the recordset and connection to
nothing at the end of the module.
DB.close
set recordset1 = nothing
set recordset2 = nothing
set DB = nothing
What have I done wrong and how can I get rid of this run time error.
-Many thanks!
for an query. However, if I want to run this module again, I will always get
the above run time error and a msgbox "The database has been placed in a
state by User"Admin" on machine "xxxx" that prevents if from opened or
locked". I can only then run the module by shutting down Access and then run
it again.
Using debug, it leads me to this line
DB.open strconnection
I close my database connection and set the recordset and connection to
nothing at the end of the module.
DB.close
set recordset1 = nothing
set recordset2 = nothing
set DB = nothing
What have I done wrong and how can I get rid of this run time error.
-Many thanks!