Can't open mdb file - ms-access

I have a database in mdb format that will not open. When I try to open the file I get an error:
"The Microsoft Access database engine stopped the process because you and another user are attempting to change data at the same time"
I was the only user accessing the database and this occurred after a compact/repair.
Any ideas on how to get the db working again?

open the .ldb file with Notepad, its name is the same as your .mdb file and its located on the same folder, you'l see info about the person 'locking' this database.
TO bypass it all, just copy the .MDB and paste it in the same folder, the lockings are not copied with it, so you can continue working on the copy of the mdb regardless.

Related

MS Access 365 error - compact and repair error

I am suddenly receiving the below error message when attempting to compact and repair my access databases. Clicking ok on the error message results in original .accdb file being deleted and an .mdb being saved out. When entering the database I'm not in read only so I'm confused on what is happening.
Microsoft Access can't delete accdb file path after compacting it. The compacted database has been named new mdb file path
When I have a database corruption that is not easily solved, I generally create a new, blank database, then import everything from the faulty db.
It's reasonably fast, and you can actually see and take note of which object fails to import. You can then import the problematic object(s) from your last backup.
Also: do all that stuff on a LOCAL drive, not a network drive. Network drives often are the culprit.

How can I open an Access database when it shows an "unrecognized database format" error?

I have a database in MS Access 2007. I saved it in Access 2002-2003 database format, i.e., .mdb format. It was working fine. But today when I try to open it, it shows an error. The error is
Unrecognized database format 'F:\Project\bin\Debug\database.mdb'.
How can I open this file? I have no backup.
If you are using Windows Vista and up, you may have a system backup.
Right click the file and select Restore Previous Versions.
If this does not work, try Access Database Corruption Repair Guide
You could try creating a new empty MDB file and importing the objects from the old one. It might work at least for some of the objects.

READ ONLY pop-up when opening Access mdb, but in fact it is not according to Properties

Any idea on why I open certain MS Access mdb file(abc.mdb), msgbox pop-up saying that it is READ ONLY, but in fact it is not when I right-click the mdb to view "Properties"?
The folder where mdb locates can write folder/txt files in it.
I copy a dummy mdb file into that folder and this READ ONLY msgbox does not pop-up in that dummy mdb. The READ ONLY issue seems only exist in ABC.mdb
I did not see any .ldb file in that folder.
Any idea on that?
Couple of suggestions (in order):
Check the security permissions in the File Properties dialog. Make sure Administrators or your login has full control.
Repair and Compact the database file. Run this command:
"C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "DatabaseFile.mdb" /nostartup /repair /compact
Try opening in a different folder like your desktop.
If all else fails.. Create a new access database in the same folder and import all access objects from the Read Only database and test again.

MS access mdb file has a "repair" status first time it is opened from Access 2007

I have created an .mdb file programatically from another .mdb file using VBScript. It creates a table in the second .mdb file and populates data. Everything works fine and data is populated correctly. This is done using JET 4.0 driver.
The issue is that when I try to open the .mdb file using Access 2007, it tries to repair the file first. I do not know why that is happening. If I try to open it in Access 2003, it opens without the repair. I need to fix this. Has anyone run into this before or any ideas as to why it is happening?
Are you sure it's the mdb that needs to be repaired? Or is it the windows installer loading up and trying to repair MS Access?
MSAccess has some issues running multiple versions on one machine, look for "Windows Installer messages in Access" on this page. The repair process is controlled by various registry entries you may be able to create a process to reset these and prevent the repair process running.

when opening mdb file, it connects to a DB

how do i specify which DB it connects to? i am opening an access file that has sql code in it and it automatically wants to connect to a specific file. how can i change this setting?
If you want to do this manually hold the shift key down and open the MDB. Then run the Linked Table Manager and choose a different MDB containing the tables you want. If Access 2003 see Tools -> Database Utilities -> Linked Table Manager. If Access 2007 I think it's on a similar labelled item behind the Office button.
If you want to do this programmatically then see Relink Access tables from code
http://www.mvps.org/access/tables/tbl0009.htm. I store the path and file name of the tables MDB, typically called the backend (BE) MDB, in an iNI file located in the same folder as the front end (FE) MDB. Although you could use the registry. This way when I release a new copy of the FE MDB/MDE it reads that path and file name and automatically relinks to the customers BE MDB.