Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Locked? What did I do???

Status
Not open for further replies.

jwoods7

Technical User
Feb 19, 2003
36
US
I have a multi-user database that all remote computers access linked tables on a server via a LAN. Occasionally I get this error when trying to open the front-end database:

The database has been placed in a state by user 'Admin' on machine 'POS2' that prevents it from being opened or locked.


What did I do? I haven't set any passwords under 'Database Utilities' and I'm using Access 2000

 
Similar threads:

There are basically two possibilities:
1. You're manually doing a "db.Close" to all your DAO.Database objects. When none remain open, the database "closes" itself in the manner you have described.
2. You're running a multi-user front-end. With Access2000, multi-user front-ends are discouraged. And I quote: "and mutliuser frontends are
pretty much dead now for all time" (thread
--
Find common answers using Google Groups:

Corrupt MDBs FAQ
 
By "multi-user" front end I am not using the same program for all computers. The server has a database with the "DATA" and each computer has it's own file "accounting.mdb" that links to that data. So multiple copies of "accounting.mdb" access the info, not just one.

I don't know what you mean by db.close
I do have some recordsets open and close them, for example like this:

set invrec = currentdb.openrecordset("SELECT * FROM [Invoices]",dBOpenSnapshot)
invrec.edit
invrec![Invoice Number] = "whatever I want to go here"
invrec.update
invrec.close

Is that kind of what you were talking about?
 
No, it looks like you're doing it right. What I was referring to is actually making a Database object and then running the ".Close" method on it, i.e.

Dim db as Database
Dim rs as Recordset

Set db = currentdb
Set rs = db.openrecordset("some SQL")

rs.close
db.close


I think there's a MS knowledgebase article on the error message too--check it out. The thread link was to give you a general feel of how others are receiving the same error as you--check them out too. At least you can scratch out the "multi-user front-end" problem.

--
Find common answers using Google Groups:

Corrupt MDBs FAQ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top