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

Compact and Repair Access DB using macro

Status
Not open for further replies.

karlomutschler

Programmer
Jun 5, 2001
75
DE
good day,
is it possible to compact and repair an Access DB using a Macro inside the DB ?

Any useful tips would be highly appreciated.

Kind regards
Karlo

meistertools@gmx.net
 
Hi
This may be useful:
Compact and Repair automatically at the start of each day
faq705-4998
 
Here the code I use to compact and repair:

'Public Sub CompactDB()
CommandBars("Menu Bar"). _
Controls("Tools"). _
Controls("Database utilities"). _
Controls("Compact and repair database..."). _
accDoDefaultAction
' End Sub


I hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top