PDA

View Full Version : Solved: remove letter from TxtBox



Emoncada
01-05-2008, 06:25 AM
How can I remove the Letter "S" if it's the first letter in the txtbox entered.

So Example

Textbox1.value = "SCD181357"
Then TxtBox1.value = "CD181357"

Possible Left(.Text, 1) ? Something like that.

unmarkedhelicopter
01-05-2008, 06:43 AM
if left(textbox1.value,1) = "S" then textbox1.value = right(textbox1.value, len(textbox1.value)-1)

Emoncada
01-05-2008, 06:51 AM
That works thanks Unmarked.

Bob Phillips
01-05-2008, 07:32 AM
Why not trap the keypress and not let them enter S if it is the first character input?