-
Hi their,
I am developing a VB application and I have restricted length of fields as well. For example I am using customer number whose length is 7 and I have specified the maxlength to 7 as well.
Is it possible one I have entered the 7th digit it can tab automatically to next field.
Many thanks in advance.
Saqi
-
Yep, in the change event of the text box, detect how many charcters have been typed in. If it is 7 then set the foucs to the next box.
Code:
Private Sub Text1_Change()
if Len(text1.text) >= 7 then
text2.setfocus
end if
end sub
-
I'm sorry I didn't mean to be affendent I only showed an other solution.