DoMenuItem or RunCommand?

  • Thread starter Thread starter Tony Williams
  • Start date Start date
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
 
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
 
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
 
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
 
Back
Top