Solved

Run time error - (-2147467529 (80004005))

Posted on 2013-12-12
7
629 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
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 “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

756 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