View Full Version : Set Focus Help


bill crumpton
02-06-2002, 02:26 PM
I have 3 fields on a form. the first is the area code for a phone number, i.e. (000), the second is the prefix for a phone number and the third is the suffix of the phone number. I need to know how to automatically set the focus to the second field after the user enters the three numbers for the area code. The same for the prefix and suffix.

There are hundreds of phone numbers to enter and if the user could move throughout the three fields without having to use the tab button it would greatly help.

Thanks for all the help.

BAC

[This message has been edited by bill crumpton (edited 02-06-2002).]

Pat Hartman
02-06-2002, 05:17 PM
Look up the AutoTab property. It should do what you want.

bill crumpton
02-07-2002, 06:13 AM
Pat,

Thanks for the response I will check it out.

BAC

golgo1
02-08-2002, 09:25 PM
another suggestion: in the ONCHANGE event of the areacode for instance, check if the len of the field is 3, then set focus to the next field. use different sizes for applicable fields