I want to have text box were if the text entered is less than 8 characted then in another text box a two digits.
As when the text box is filled if a word of 8 characters the other text box only has a single numerical digit in it
Printable View
I want to have text box were if the text entered is less than 8 characted then in another text box a two digits.
As when the text box is filled if a word of 8 characters the other text box only has a single numerical digit in it
VB Code:
If Len(Text1.Text) = 8 Then Text2.Text = "1" 'your single digit number ElseIf Len(Text1.Text) < 8 Then Text2.Text = "11" 'your two digit number End If
BTW: Welcome to VB Forums