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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"couldn't lock file" error

Status
Not open for further replies.

Yazster

Programmer
Sep 20, 2000
175
CA
Hi everyone,

I was curious if anybody else receives this error. I'm currently using the DAO Data control to access an .MDB database. My program works fine, but occasionally the database is not accessible to anyone and users receive a "COULDN'T LOCK FILE" error.

I've noticed that every time this happens, the associated .LDB file is locked and cannot be deleted or moved. When the .LDB file is finally accessible (sometimes 1 or 2 days later), the database is fine.

Is this a common problem?

Thanks,
Yazster
 
It sounds like there may be a bug in the way you're disinstantiating your connection to the database. The only time I've seen this is when an object isn't getting destroyed properly (if a client crashes, or terminates in an unforseen way).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top