AW: [AccessD] KeyCode overview

Michael Brosdorf michael.broesdorf at web.de
Thu Jul 8 05:53:42 CDT 2004


Gustav,

because I need to respond to some special keys as well (navigation keys
etc.)

Michael



-----Ursprungliche Nachricht-----
Von: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Gustav Brock
Gesendet: Donnerstag, 8. Juli 2004 11:06
An: Access Developers discussion and problem solving
Betreff: Re: [AccessD] KeyCode overview


Hi Michael

Why not move the key handling to KeyPress? That uses the ascii values.

/gustav


> I would like to trap for pressing certain keys on a specific control on my
> form.
> The KeyDown-Event gives me the keycode, but that keycode does not match
> the ASCII-code of the character.

> E.g. the keycode for the left arrow is 37, but this is the % in ASCII.

> Is there an overview over those keycodes somewhere? The Access Help only
> seems to have a
> list of keycode constants.

> What I am trying to do is this:

> Select case keycode
> case 32 to 126 'These should be all normal printable letters, digits and
> special characters (such as /{( etc.)
>         'Do something
> case else

> end select


> Michael

--
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com




More information about the AccessD mailing list