Find the definition of code in Access 2003

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
 
F

fredg

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top