Try this:
Form_Keydown(Keycode as Integer, Shift as Integer)
select case KeyCode
case 33,34, 18 --> place keystrokes...
keycode=0
case else
end select
end sub
Quiz: I added three options, pageup, pagedown and tab
Which one is which ;-)

Signature
Maurice Ausum
> >I have a form with a subform and parent-child relationship on the loan
> >number. Users will enter data in the subform. All of the fields in the form
[quoted text clipped - 11 lines]
>
> John W. Vinson [MVP]
Brendan Reynolds - 21 May 2007 19:55 GMT
Why not use the intrinsic constants, vbKeyPageUp, vbKeyPageDown, and
vbKeyTab?
BTW: according to the object browser, the value of the vbKeyTab constant is
9, not 18. 18 is the value of the vbKeyMenu constant. Just exactly what the
'Menu' key is, I have no idea. Some historical thing retained for backwards
compatibility, perhaps?

Signature
Brendan Reynolds
> Try this:
>
[quoted text clipped - 32 lines]
>>
>> John W. Vinson [MVP]
lreecher - 23 May 2007 14:12 GMT
I am a little green using VB. The compiler does not like the 'arrow and place
keystrokes'. I am not quite sure what to do about this. Could you please
explain?
Thanks.
> Try this:
>
[quoted text clipped - 24 lines]
> >
> > John W. Vinson [MVP]
missinglinq - 23 May 2007 17:34 GMT
The 'arrow and place keystrokes was put there for your edification; either
remove them or REM them out with an apostrophe
case 33,34, 18 ' --> place keystrokes...

Signature
There's ALWAYS more than one way to skin a cat!
Answers/posts based on Access 2000
missinglinq - 23 May 2007 17:42 GMT
Brendon is correct, vbKeyPageUp, vbKeyPageDown will work as well as the
keycodes.
What nobody has mentioned is that the Key Preview property of the form has to
be set to YES.
Properties -- Events -- Key Preview

Signature
There's ALWAYS more than one way to skin a cat!
Answers/posts based on Access 2000