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 strongm 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 database in access 2007

Status
Not open for further replies.

woro2006

IS-IT--Management
Dec 24, 2006
18
US
I just want to compact and repair on the same database that I open using vba. Thanks.
 
Specifically, I would like to do something like the following in Access 2007. Thanks.

Public Sub CompactDB()
CommandBars("MenuBar").Controls("Tools").Controls("Database utilities").Controls("Compact and repair database...").accDoDefaultAction
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top