Re: docmd.domenuitem question
- From: John Nurick <j.mapSoN.nurick@xxxxxxxxxxxxxx>
- Date: Fri, 01 Dec 2006 07:08:27 +0000
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.
.
- Prev by Date: Re: Bookings Integrity.
- Next by Date: Re: Changing OLE Links
- Previous by thread: Re: docmd.domenuitem question
- Next by thread: Re: docmd.domenuitem question
- Index(es):
Relevant Pages
|