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

How do you invoke a menu item

Status
Not open for further replies.

sk8er1

Programmer
Jan 2, 2005
229
US
I have a menu bar that has an icon labelled "Convert to Adobe PDF. I want to convert my report to adobe by clicking a button.

The convert to adobe is on a menu called UTILITY 1.
How do you do this in code.

Docmd.DoMenuItem ......

Thanks
 
Are you aware that the DoMenuItem method is deprecated since ac97 ?
 
Yes, but I really don't understand how it works...

Can you explain what the following line is doing...

DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70

Along the top of my access 2002, I have
FILE EDIT VIEW INSERT FORMAT TOOLS WINDOW HELP



Thanks
 
I really don't understand how it works
So, don't use it ;-)
The preferred method is DoCmd.RunCommand

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top