Solved

Run time error - (-2147467529 (80004005))

Posted on 2013-12-12
7
652 Views
Last Modified: 2014-06-17
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.

This is very time consuming and annoying.

The only thing I found on the web was that something must be open. But I close everything I can think of. Please advise....

My code is attached in a text file....
errors on :  conn.Open sConnString
code.txt
0
Comment
Question by:baytowel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
7 Comments
 
LVL 10

Expert Comment

by:Anthony Berenguel
ID: 39714569
I'm not sure if this is the problem but try setting 'conn = nothing' after you close the connection.
0
 

Author Comment

by:baytowel
ID: 39714822
This didn't help.....
0
 

Author Comment

by:baytowel
ID: 39714864
If I make a change in any module in the project, I receive the error!!! Even if I have not run the module yet!!!!
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 38

Expert Comment

by:Jim P.
ID: 39720571
At the top of the offending module put Option Explicit if it isn't there already.

Then go in to Tools --> References and make sure nothing says MISSING Then do a Debug --> Compile. The cause could be a missing reference or an error in another module.
0
 

Author Comment

by:baytowel
ID: 39807087
Option explicit does exist at the top of the module and nothing missing in references and a compile completes....
0
 

Accepted Solution

by:
baytowel earned 0 total points
ID: 40131029
Closing due to no solution
0
 

Author Closing Comment

by:baytowel
ID: 40138850
EE was not able to provide a solution
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question