Avatar of shambalad
shambalad
Flag for United States of America asked on

Looking for list of DoMenuItem operations

I am working with some old code which is lttered with numerous DoMenuItem instructions such as:
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Can anyone point me to a table or list I could use to quickly determine what operation each of these menu items actually does?
Microsoft Access

Avatar of undefined
Last Comment
shambalad

8/22/2022 - Mon
Rey Obrero (Capricorn1)

from help file.. is this what you are looking for
Constant Value
acFirst          2
acGoTo         4
acLast          3
acNewRec    5
acNext         1
acPrevious   0
Rey Obrero (Capricorn1)

in the vba help type domenuitem
from the method shown click on the intrinsic constants.
Rey Obrero (Capricorn1)

Your help has saved me hundreds of hours of internet surfing.
fblack61
shambalad

ASKER
Actually what I am looking for is a table/list that would look something like:

Version             Menu                    Option    Executes
acMenuVer70   acRecordsMenu      1           ?        
acMenuVer70   acRecordsMenu      2           ?      
acMenuVer70   acRecordsMenu      3           ?      
acMenuVer70   acRecordsMenu      4           ?      
acMenuVer70   acRecordsMenu      5           Refresh Record        
           

 
shambalad

ASKER
The idea being, I would like to have a quick reference so that when I see that someone a line such as:

DoCmd.DoMenuItem acFormBar, acFilesMenu, 2, , acMenuVer70

I can quickly tell what operation they are trying to accomplish.
shambalad

ASKER
Make that:
The idea being, I would like to have a quick reference so that when I see a line such as:

DoCmd.DoMenuItem acFormBar, acFilesMenu, 2, , acMenuVer70

I can quickly tell what operation they are trying to accomplish
TH
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
harfang

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
shambalad

ASKER
http://home.clara.net/tkwickenden/domenuitem.htm
is just what I was looking for. A lot of good related information on the website too.
Thanks,
TH