How to make cursor jump to next field after data entry

  • Thread starter Thread starter Frank
  • Start date Start date
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?
 
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.
 
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.
 
Back
Top