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!

Db getting corrupted

Status
Not open for further replies.

kovas

Technical User
Aug 6, 2002
88
0
0
US
Sometimes when ppl just power off their pc without shutting down properly my access db gets corrupted, I usually just repair it and its fine after that. But until i repair it the app gives an error saying DB not recognized. Is there someway I can automate it in the error handler to repair it self without me doing it manually to avoid down time?

thank you.
 
You could perform a check on startup to see whether or not it needs to be repaired. I don't know what kind of data access you use. If you're using DAO you can use the RepairDatabase method. If you're using ADO it's also possible, but slightly diffrent. Check out this link for that:

Greetings,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top