Re: docmd.domenuitem question



The 8 and 6 refer to the positions of commands on (in this instance) the
Edit menu of Access 95.

The whole DoMenuItem business is a hangover from the earliest days of
Access and has been obsolete since the arrival of Access 97 almost ten
years ago. The only reason it's still there is to save rewriting antique
code: IMHO you should never use DoMenuItem in new or refactored code.

On Thu, 30 Nov 2006 17:12:01 -0800, DawnTreader
<DawnTreader@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Hello

thanks for the response Cheese, but it still doesnt say what 8 or 6 means in
that article. all it says is:

(count down the list, starting from 0)



"Cheese_whiz" wrote:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaac11/html/acmthactDoMenuItem_HV05186487.asp

That should explain it better than I could. It's pretty straightforward.

CW

"DawnTreader" wrote:

hello

what does this do and why?

DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70

i know that it deletes the current record. why? how? specifically i want to
know what the number 8 and 6 correspond to. there seems to be a list
somewhere, but someone (M$) is hiding it. i have tried counting the menu
items, but they dont seem to line up with the Delete command on them. i dont
understand why there are 2 lines to delete the one record. please someone
enlighten me. :)

would it be better to use the docmd.runcommand and tell it to delete the
current record?

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
.



Relevant Pages

  • Re: seen in ports and used but dont remember the name ;)
    ... letting it doing some commands. ... I installed from ports, but I dont remember its name. ...
    (freebsd-questions)
  • Pivot Chart Title variable
    ... selection made from the dropdown box. ... I dont know the commands to reference ...
    (microsoft.public.excel.charting)
  • Bash script question
    ... so I dont know if I can do this with bash or what commands ... I have a file wich has multiple lines named "title1=unknown", ... unknown. ...
    (comp.unix.shell)
  • Re: GSM Modem & AT Commands
    ... Im trying to read SMS from the phone, the AT commands ... I dont know where the output is being directed ... OnComm method, but when I try it on GSM Phone Modem, OnComm ... is how to configure the MSComm control in VFP ...
    (microsoft.public.fox.programmer.exchange)
  • Re: draw around ROI
    ... I dont have the Image processing blockset with me currently.... ... but have a look at the commands like ... i have a image in binary level. ...
    (comp.soft-sys.matlab)