acFormBar

G

Guest

I have this line of code in my database and I don't know what it means.

DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70

What the hell is a FormBar?

Thanks
 
G

Graham Mandeno

Hi Chris

This is nasty, obsolete code that was probably generated by a wizard. The
acMenuVer70 refers to Access 7.0 (aka Access 95)!!

The code is attempting to save the current record on your form.

Instead, you should use:
Application.RunCommand acCmdSaveRecord

or, even simpler:
Me.Dirty = False
 

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

Similar Threads


Top