Find the definition of code in Access 2003

  • Thread starter Thread starter cacacaconnie
  • Start date Start date
C

cacacaconnie

When I see a line of code like this " DoCmd.DoMenuItem acFormBar,
acRecordsMenu, acSaveRecord, , acMenuVer70", where can I an explanation for
this code?

Thanks
 
When I see a line of code like this " DoCmd.DoMenuItem acFormBar,
acRecordsMenu, acSaveRecord, , acMenuVer70", where can I an explanation for
this code?

Thanks

The code you are referring to is OLD code (Access 95 or older) and is
included in newer Access versions just for backward compatibility.
As to what it will do, in Form view click on the Records tool button
and you will see Save Record as a menu option.

New code to save the current record would be
DoCmd.RunCommand acCmdSaveRecord

For more information, in VBA help files look up RunCommand and it will
also have a link to the DoMenuItem help file.
 
Back
Top