dbTalk Databases Forums  

Compact & Repair Database

comp.database.ms-access comp.database.ms-access


Discuss Compact & Repair Database in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
janthony
 
Posts: n/a

Default Compact & Repair Database - 08-06-2003 , 11:29 AM






Does anyone know of a line of code that I could use to automatically
compact and repair a database, either on a click of a button or
event/action?

Reply With Quote
  #2  
Old   
r0adh0g
 
Posts: n/a

Default Re: Compact & Repair Database - 08-06-2003 , 12:38 PM






This will set the database to compact on exit.......

Application.SetOption "Auto Compact", True

rh

"janthony" <janthony (AT) harrahs (DOT) com> wrote

Quote:
Does anyone know of a line of code that I could use to automatically
compact and repair a database, either on a click of a button or
event/action?



Reply With Quote
  #3  
Old   
Peter De Baets
 
Posts: n/a

Default Re: Compact & Repair Database - 08-11-2003 , 12:50 PM



DBEngine.CompactDatabase olddb, newdb, locale, options, password

Hope this helps,


--
Peter De Baets
Peter's Software - MS Access Tools for Developers
http://www.peterssoftware.com


"janthony" <janthony (AT) harrahs (DOT) com> wrote

Quote:
Does anyone know of a line of code that I could use to automatically
compact and repair a database, either on a click of a button or
event/action?



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.