Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Run time error - (-2147467529 (80004005))

Posted on 2013-12-12
7
Medium Priority
?
661 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

715 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