P
Peter Hibbs
Access 2003.
I have a form with a List Box control, the Row Source is linked to a
query to show a list of client addreses. The List Box control is third
in the Tab order so the user will press the TAB key and move the
cursor to the List Box, use the Up and Down arrow keys on the keyboard
to select a record in the list and then click the selected record to
display some information about the client.
The problem is that as soon as they press an arrow key, the List Box
Click event is triggered and they get the first client in the list
instead of the one they want. This seems to be a feature of Access
List Box controls as it also does it on other forms and other
databases.
Is there any easy way to prevent the Click event triggering when an
arrow key is pressed on a keyboard but still trigger when they click
on the List box with the mouse?
Peter Hibbs.
I have a form with a List Box control, the Row Source is linked to a
query to show a list of client addreses. The List Box control is third
in the Tab order so the user will press the TAB key and move the
cursor to the List Box, use the Up and Down arrow keys on the keyboard
to select a record in the list and then click the selected record to
display some information about the client.
The problem is that as soon as they press an arrow key, the List Box
Click event is triggered and they get the first client in the list
instead of the one they want. This seems to be a feature of Access
List Box controls as it also does it on other forms and other
databases.
Is there any easy way to prevent the Click event triggering when an
arrow key is pressed on a keyboard but still trigger when they click
on the List box with the mouse?
Peter Hibbs.