I tried that, I added a new Switchboard Item of Run Code > runcommand
acCmdBackup. When I click the switchboard item I get "There was an error
running commad."
I also had tried it as a VB statement and could quite figure it out.
The syntax would be...
DoCmd.RunCommand acCmdbackup
However, here is an alternative.
Private Sub Back_up_Click()
CommandBars("Menu Bar"). _
Controls("Tools"). _
Controls("Database utilities"). _
Controls("Back Up Database..."). _
accDoDefaultAction
End Sub
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.