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

Repair Access 2000 database in VB6 code? 1

Status
Not open for further replies.

custsoft

Programmer
Aug 29, 2000
41
Now and then my Access 2000 file is corrupted and I have to run the repair utility in Access 2000. Is there a way to do that in VB6 code? I did see a posting that said to use repairdatabase(databasename) but what is that? What error code do you check for when you get the unrecognized database format? 3343? Thanks for any help. Joe
 
Yes, I do understand. It looks like the compactdatabase will accomplish the fix. I thought that ADO would have a specific error number for the unrecognized database format but I will just try the compactdatabase when the program first opens the database and an error occurs. Thanks for all of your help. Joe.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top