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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select the first 6 charaters from a text box 2

Status
Not open for further replies.

Moss100

Technical User
Aug 10, 2004
586
GB
I would like to select the first 6 characters from a text box and use something like a 'setvalue' command to transfer this into another text box. Any ideas how I get access to just select the first six characters?

Many thanks

Mark
 
I would look into using the Left() function.

Hope this helps

HarleyQuinn
---------------------------------
Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
You can use Left:

[tt]txtOtherTextBox=Left(txtTextBox,6)[/tt]
 
If i create a new taxt box called say text200 and i want to display the first 6 characters of a textbox, text188, what would i write in the control source of text200??

i.e to display the full contents of text188, I would write in the control source of text200 "=[text188]"

Sorry for being so dumb!

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top