Program Down Arrow

C

CJ

Hi Groupies

I would like to know how to program the down arrow button so that you can
move down to the next record in the field on a continuous subform.

The subform that I have is used in a couple of different ways in our
inventory database. I don't want to create a copy of the same thing just so
that I can change the tab order. However, when returns are being processed,
the only column that we need to move to is the quantity. So, how do I use
code to ensure that the down arrow button just moves the focus down in that
field?
 
S

Scott Lichtenberg

CJ,

Take a look at the KeyUp, KeyDown, KeyPress events. It's been a while since
I played with these, but they will allow you to do what you're looking for.
Also, take a look at the KeyPreview property of the form itself. If I
remember correctly, you have to set this to true in order for the other
events to be recognized.
 
K

Klatuu

Another way would be to make all the controls Enabled = No and Locked = Yes
during the time you are processing returns except, of course, for the
quantitiy control.
 
C

CJ

Oh yeah, much easier.....basically because I know how to do it!!

Thanks for the alternative idea.
 
K

Klatuu

Actually, I think it is a better idea because now a user can't use the mouse
or tab key to move to controls you don't want them in.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top