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

Need some explanation of certain pieces of code

Status
Not open for further replies.

cmmd2003

Programmer
Mar 23, 2007
28
GB
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70

Could someone explain to me what
acFormBar, acRecordsMenu and acMenuVer70
refer to please.

 
Put the cursor inside the DoMenuItem word and press the F1 key.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
The resource i need for that is apparently unavailable, prob cos i got a dodgey copy
 
This is old syntax that is generated by the wizard

Domenuitem means execute a menu item. In this case this is on the forms menu, under "Records", "Save Record". Menuversion70 is like a software version.

do menu item is old, the new way is to use

docmd.RunCommand acCmdSaveRecord

It is the same as choosing, "Records" "save Record" from the menu bar.
 
How are ya cmmd2003 . . .

In parallel with [blue]MajP[/blue], have a look here: Converting DoMenuItem to RunCommand

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top