Trimming Left Character in textbox

calimlimrodel

Registered User.
Local time
Tomorrow, 03:25
Joined
Feb 12, 2008
Messages
10
Hi there,

Good day!

Please help. I have 2 textbox named textbx1 & textbx2. If I input a data on the textbx1 with 10 characters (ex.abcdefghij), and after update the last 4 characters on the textbx1 would be in textbx2 (ex. ghij). Could anyone help me to solve this problem....

Thanks in advance!
 
Simple Software Solutions

Gemma is correct, however you may hit problems if the user does not enter more than 4 characters::mad:

On the AfterUpdate Event of the first text box simply enter

Me.textbx2 = Iff(Len(Me.TextBx1) > 4,Right(Me.TextBx1,4),Me.TextBx1)

CodeMaster::cool:
 

Users who are viewing this thread

Back
Top Bottom