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

Error Msg: database needs to be repaired

Status
Not open for further replies.

MHansel739

IS-IT--Management
Aug 14, 2002
12
0
0
I have a customer that has gotten the following error message while using their multiuser Access 2000 database.

The database "G:\MASTER SCHOOL DATABASE.MDB" needs to be repaired or isn't a database file.
You or another user may have unexpectedly quit Microsoft Access while a Microsoft Access database was open.
Do you want Microsoft Access to attempt to repair the database?
YES NO

Now, I have two users set up - Admin and Coord. Most users are accessing the database as Coord, whereas some of them are accessing using Admin. I have repaired the database with NO issues so far, but this has happened TWICE today so far.

Now, I have gone through my security settings and changed the option under Admin for the database to NOT be able to OPEN EXCLUSIVE - that was checked earlier. Could this have been the problem?

--Matthew Hansel
 
YOu maay need to open the database pessimistically. What that does is not allow any user to even see a record that is being viewed by another. Is sounds like two users are trying to save data in the same slot and the db is opened optimistically.

Rollie E
 
Alright - now how do we do that then? We have about 10 people going into this database at one time. Let me know.

--Matt
 
I copied this right out of HELP after asking about RECORDSET...

Global rstSuppliers As ADODB.Recordset
Sub MakeRW()
DoCmd.OpenForm "Suppliers"
Set rstSuppliers = New ADODB.Recordset
rstSuppliers.CursorLocation = adUseClient
rstSuppliers.Open "Select * From Suppliers", _
CurrentProject.Connection, adOpenKeyset, adLockOptimistic
Set Forms("Suppliers").Recordset = rstSuppliers
Forms("Suppliers").UniqueTable = "Suppliers"
End Sub

When you had EXCLUSIVE set you kept all users from the entire database. I believe this one only keeps the record in question froom the other users.

I hope this helps!!!

Rollie E
 
That adLockOptimistic would be Pessimistic, of course.

Sorry about that!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top