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

You do not have exclusive access to the database

Status
Not open for further replies.

BrianBurgit

IS-IT--Management
Dec 13, 2004
95
US
I have an Access 2007 database that is built as a front end and back end. It was converted from an Access 97 database. I am running into the “You do not have exclusive access to the database at this time…” message any time I try to open a Form in design mode. I am the only person using the database. My Default Open Mode is set to Exclusive and Default Record Locking is set to Edited Records. I’ve also tried different values for these settings, with no luck. If I close then reopen the front end database, I can edit a form and save changes once or twice, but then if I access some data via some Forms that are in the database, then try to go into design mode of any Form or Report, the error starts coming up again. Anyone have any ideas how to fix this?

Thanks,

Brian
 
When the frontend is closed, look for files (front- and backend) with an .ldb extension. If you find any, delete them & try again.

Ni neart go cur le cheile.
 
Thanks, checked that, there are no lock files hanging around.
 
Yes, all Forms are closed. I will try the decompile and see what happens.
 
I have seen that in the past with a DB.

I could not figure it out.

My best guess was some code in Startup or that was run in AutoExec was opening a table or setting an Access Switch or setting.

I finally solved that problem by creating a new, blank database and then importing all of the objects from the problem DB.

Make sure to check the references in the old DB and set them the same in the new DB and after the import, do a Compile.

Hope this helps.
Hap...



Access Developer [pc] Access based Accounting Solutions - with free source code
Access Consultants forum
 
Thanks for the advice Hap007, I will try that.
 
Well I started from scratch and converted the front and back ends again and all seems to be working so far. Thanks for the suggestions everyone.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top