DoMenuItem or RunCommand?

T

Tony Williams

I have this line of code in a form
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Looking at the VBA Help it says the DoMenuitem should be replaced by
RunCommand.
Can anyone tell me if this will cause problems and how should I change the
line for RunCommand?
TIA
Tony Williams
 
A

Art

Hi Tony
What problem are you experiencing or what is it that
you are trying to accomplish?
 
T

Tony Williams

Hi Art, I don't really have a problem except when I was reading the VBA Help
files it said thatDoMenuitem was a hangover from Access 97 and now you
should use RunCommand instead. Is this the case and if so do I need to
change my code?
My code is
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
What do you think?
Tony
 
A

Art

DoMenuItem was used before Access97 and gets changed to
RunCommand automatically on database conversion. If you
have this in your code and it is causing a problem or
generating an error, change it manually.

Hope This Helps
 
T

Tony Williams

Hi Art it doesn't seem to be a problem so presumably I can leave well alone?
I thought maybe it was an old standard that I could have some problems with.
All the machines my database will run on have Access 2000 or later
Tony
 

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