maxmangion
AWF VIP
- Local time
- Today, 17:00
- Joined
- Feb 26, 2003
- Messages
- 2,805
i have a tabular form and i would like that when i press the up or down arrow key, i would move to the next/previous record rather than the next/previous field.
which of the following codes do you think it's best to use:
or
thanks you!
which of the following codes do you think it's best to use:
Code:
select case keycode
case vbkeydown
docmd.gotorecord , , acnext
keycode = 0
case vbkeyup
docmd.gotorecord , , acprevious
keycode = 0
case else
end select
or
Code:
if keycode = 40 then
docmd.gotorecord , , acnext
keycode = 0
else
if keycode = 38 then
docmd.gotorecord , , acprevious
keycode = 0
end if
end if
thanks you!