Compact Database??????????

chadt

Registered User.
Local time
Today, 20:31
Joined
Jan 9, 2001
Messages
20
Can anyone tell me how to run the Compact Database tool from my VBA code. I current do docmd.RunCommand(acCmdCompactDatabase) but it pops up a window wanting to know which database I want to compact. Is there a way to automate this within the current DB so there has to no user input.
Thanks
Chad
 
Access 97
 
Thanks Richie,
That worked great. One more question, is there a prettier way of doing this?? Like maybe keeping a Form Loaded or something while it compacts.
Thanks
Chad
 

Users who are viewing this thread

Back
Top Bottom