[AccessD] A2K2: Cannot capture arrow keys in macro?!?

Rocky Smolin - Beach Access Software bchacc at san.rr.com
Mon Sep 22 19:49:28 CDT 2003


Chris:

Set Key Preview to Yes and use the form event OnKeyDown.  This will capture
the non-printable keystrokes in the KeyCode variable.  Keypress only gives
you the printable keystrokes in the KeyAscii variable.

HTH

Rocky Smolin
Beach Access Software

----- Original Message ----- 
From: "MartyConnelly" <martyconnelly at shaw.ca>
To: "Access Developers discussion and problem solving"
<accessd at databaseadvisors.com>
Sent: Monday, September 22, 2003 4:25 PM
Subject: Re: [AccessD] A2K2: Cannot capture arrow keys in macro?!?


> Can't you use at the appropriate spot in code
>
> If keyCode = vbKeyUp or vbKeyDown
>
> Maybe look under Ascii or Keycode Constants.
>
> Christopher Hawkins wrote:
>
> >All,
> >
> >I'm trying to put together an AutoKeys macro that will capture the
> >arrow keys.  So far, no luck.  A2K2 doesn't seem to like the {UP} and
> >{DOWN} that worked in years gone by, with older (and better?)
> >versions of Access.
> >
> >Of course, the help files tell me next to nothing.  Has there been a
> >syntax change?  Are the arrow keys non-trappable now?  Am I
> >overlooking an option setting someplace?
> >
> >Heeeeeeeeeelp...
> >
> >-Christopher-
> >
> >_______________________________________________
> >AccessD mailing list
> >AccessD at databaseadvisors.com
> >http://databaseadvisors.com/mailman/listinfo/accessd
> >Website: http://www.databaseadvisors.com
> >
> >
> >
>
>
> _______________________________________________
> 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