B
Bruce
Hi,
I have been using the macro below sucessfully in Access 2003. I have just
upgraded to MS2007 and my vba no longer works.
At this stage I do not plan to upgrade the DB from 2003 to 2007. Is there a
different way to do this so it works in both 2003 and 2007.
Bruce
Public Sub CompactDB()
CommandBars("Menu Bar"). _
Controls("Tools"). _
Controls("Database utilities"). _
Controls("Compact and repair database..."). _
accDoDefaultAction
End Sub
I have been using the macro below sucessfully in Access 2003. I have just
upgraded to MS2007 and my vba no longer works.
At this stage I do not plan to upgrade the DB from 2003 to 2007. Is there a
different way to do this so it works in both 2003 and 2007.
Bruce
Public Sub CompactDB()
CommandBars("Menu Bar"). _
Controls("Tools"). _
Controls("Database utilities"). _
Controls("Compact and repair database..."). _
accDoDefaultAction
End Sub