DoCmd.DoMenuItem not working after upgrade.

J

Joel Wiseheart

I recently updated a database from Access 97 to Access
2002. I suspect in the past that it was upgraded from
Access 2.0 to 97.

One of the buttons doesn't work anymore, and has the
following code in the OnClick event:

DoCmd.DoMenuItem A_FORMBAR, A_EDITMENU, 10, ,
A_MENU_VER20

Where could I find a list of what these old version
DoMenuItem commands were trying to do, so I can change it
to the appropriate DoCmd.RunCommand statement? I have no
idea what item 10 of the Edit menu in version 2.0 was...

Thanks!
 
D

Douglas J. Steele

What is it supposed to be doing? There's probably a more direct method than
trying to use DoCmd.DoMenuItem.

For what it's worth, here's what the Help file for Access 97 has to say
about using DoCmd.DoMenuItem:

"In Microsoft Access 97, the DoMenuItem method has been replaced by the
RunCommand method. The DoMenuItem method is included in this version of
Microsoft Access only for compatibility with previous versions."
 
J

Joel Wiseheart

I agree. That's sort of what's happening. I want to use
the RunCommand method. The old "DoMenuItem" method is
referncing a command on the Access ver. 2.0 menu. I don't
have any documentation that old. I'm not sure what
command they were trying to run.
 

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