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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling Menu Bar options

Status
Not open for further replies.

legendv

Technical User
Apr 10, 2002
32
0
0
US
I want a cmd button on a form that lets the user "compact and Repair" the database.
The menu's have been removed.
There is a hidden menu, called "Developer" which is only accessible thru a password protected form, that has the menu option "Compact and Repair Database..."

Here's what I have: (in a module)

Public Sub CompactDB()
Commandbars("Developer").Controls("Compact and Repair Database...").accDoDefaultAction
End Sub

The menubar is labeled Developer and Compactandrepairdatabase is listed in the first pull down

Any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top