Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format textbox

Status
Not open for further replies.

M626

Programmer
Joined
Mar 13, 2002
Messages
299
I have two textbox equal to eachother....

text1 = text2

except I need for text2 to always being 6 digits

so if i enter 23 in text 1

text2 should display 000023 or 1 should display 000001
any ideas?
 
Text2.Text = Right("000000" & Text1.Text, 6)
 

[tt]
text2.text = format(text1.text, "000000")
[/tt]

good luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top