How to make cursor jump to next field after data entry

F

Frank

I want to create fields on a form which automatically go to the next field
when the first field is filled without having to press tab or enter. I
specifically want a series of single-digit fields that go to the next field
as soon as a digit is entered. I can't figure out how to do that. Any
suggestions?
 
J

john.fuller

I want to create fields on a form which automatically go to the next field
when the first field is filled without having to press tab or enter. I
specifically want a series of single-digit fields that go to the next field
as soon as a digit is entered. I can't figure out how to do that. Any
suggestions?

May not be the most elegant solution but it should work.

Capture the on change event for each field. If the field is not equal
to null or "", then use the .setfocus command on the field you want it
to jump to. Havn't tested it out but that should work.
 
D

Dirk Goldgar

Frank said:
I want to create fields on a form which automatically go to the next field
when the first field is filled without having to press tab or enter. I
specifically want a series of single-digit fields that go to the next
field
as soon as a digit is entered. I can't figure out how to do that. Any
suggestions?


If yuo set an input mask for each text box, and use a mask that accepts a
single character (or a single numeric digit, if they're really supposed to
be digits), and set their AutoTab properties (on the Other tab of the
property sheet) to Yes, then you'll get this behavior with no code at all.
 

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