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

Access 2007 create a button using VBA code instead of macro

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
Access 2007 create a button using VBA code instead of macro
is there a way to have Access 2007 create VBA code when using the wizard to make new buttons instead of a macro for items?
I se there is a convert macros to VBA but it does nothing ?
It make a Command 27 for example but nothing in it.
I want to get the code for a Save record.
I used this for years, but I know the menus of old are not the ribbon of new.
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70


DougP
[r2d2] < I Built one
 
Use DoCmd.RunCommand instead of the deprecated (since ac97) DoMenuItem.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top