S
SF
Hi,
I have a function to compact Database below, it works well in Access 2003.
Access 2007 give me an error.
Public Function CompactPACTDB()
CommandBars("Menu Bar"). _
Controls("Tools"). _
Controls("Database utilities"). _
Controls("Compact and repair database..."). _
accDoDefaultAction
End Function
SF
I have a function to compact Database below, it works well in Access 2003.
Access 2007 give me an error.
Public Function CompactPACTDB()
CommandBars("Menu Bar"). _
Controls("Tools"). _
Controls("Database utilities"). _
Controls("Compact and repair database..."). _
accDoDefaultAction
End Function
SF