jcwillette
Registered User.
- Local time
- Today, 13:04
- Joined
- Jan 19, 2009
- Messages
- 23
I have a database that I have created a nice switchboard for. My problems lies in the fact that I would like the switchboard have a button to automatically backup the database instead of selecting that option through the tools dropdown menu. I assume that if I can perform that task that other tasks can be done the same way for the database clean up.
I have search this forum all day, but no idea as to where to start. I have run across the following code, but it doesn't seem to work.
Function BackupFunction()
CommandBars("Menu Bar"). _
Controls("Tools"). _
Controls("Database utilities"). _
Controls("Back_Up Database..."). _
accDoDefaultAction
End Function
Any help would be appreciated.
Thanks in advance.
JC
I have search this forum all day, but no idea as to where to start. I have run across the following code, but it doesn't seem to work.

Function BackupFunction()
CommandBars("Menu Bar"). _
Controls("Tools"). _
Controls("Database utilities"). _
Controls("Back_Up Database..."). _
accDoDefaultAction
End Function
Any help would be appreciated.

Thanks in advance.

JC