Solved

Run time error - (-2147467529 (80004005))

Posted on 2013-12-12
7
601 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
  • 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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 Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

747 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now