Run-time error '3734'.

P

Paul

I am trying to run an update query in VBA and I get the 3734 error. This
does not happen every time the program is run but it does happen often. The
error says that user Admin has placed the database is the state, which tells
me that no one was using the database at the time because this program runs
at 4 AM. The code I am using follows:

Dim objAcc As Object

Set objAcc = GetObject("\\SCSEDDC10\common$\Helpdesk &
Security\ADP\~Operations\Databases\Staff2.mdb")

objAcc.CurrentDb.Execute "BDay - Creation"

Should I use some other method to run the query?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top