Re: Combo Boxes - KeyDown/AfterUpdate/Lost focus interactions
- From: "Wayne Morgan" <comprev_gothroughthenewsgroup@xxxxxxxxxxx>
- Date: Thu, 5 May 2005 07:00:05 -0500
To have the arrow keys navigate up and down the drop down list doesn't
require any code once the list is open, the normal behavior is to navigate
up and down the list. To open the list, you can use Alt+Down Arrow. If you
wanted to bypass using the Alt key, you could use the key down event to
check for the down arrow key and if the drop down wasn't open, then open it,
otherwise do nothing. To see if the drop down is already open you could use
the code form this link.
http://www.mvps.org/access/api/api0052.htm
--
Wayne Morgan
MS Access MVP
"Ed Ardzinski" <Ed_Ardzinski_NO_SPAM_@xxxxxxxxxxx> wrote in message
news:C5E069BB-199C-472E-B50E-F1C52131EEEE@xxxxxxxxxxxxxxxx
>I inherited this database about 8 months ago, and there were "Lost Focus"
> events after certain fields were entered. In some cases these event would
> interfere with the use of the navigation buttons.
>
> I changed the events to be AfterUpdates, and things went well. Eventually
> I
> put in some KeyDown events on the combo boxes so the users could use the
> up
> or down arrow to navigate the lists. this was all Access 2000
>
> The office is switching to XP/Office 2003, and I am told that the up/down
> arrow code is causing an error, I think it was 777-You've used the
> ListIndex
> property incorrectly...
>
> So to get around it, I eventually went back to the lost focus
> events...which
> calculate and (sometimes) populate other fields in the form. Now I'm back
> to
> getting annoying navigation behavior.
>
> Any thoughts/suggestions/enlightenment would be helpful...thanks all!
.
- Follow-Ups:
- Re: Combo Boxes - KeyDown/AfterUpdate/Lost focus interactions
- From: Ed Ardzinski
- Re: Combo Boxes - KeyDown/AfterUpdate/Lost focus interactions
- References:
- Combo Boxes - KeyDown/AfterUpdate/Lost focus interactions
- From: Ed Ardzinski
- Combo Boxes - KeyDown/AfterUpdate/Lost focus interactions
- Prev by Date: Re: How to prevent identical values in pkey field?
- Next by Date: Re: Updating subform from second mainform
- Previous by thread: Combo Boxes - KeyDown/AfterUpdate/Lost focus interactions
- Next by thread: Re: Combo Boxes - KeyDown/AfterUpdate/Lost focus interactions
- Index(es):
Relevant Pages
|