judgehopkins
Technical User
strTemp = LTrim(RTrim(strTemp))
I have a text box control on a form where users enter a street address into. In the after update event procedure, I want to trim any leading and following spaces from the address. It would be nice to have double spaces removed also.
Thus, " 123 Main Street " would become "123 Main Street".
I know I have to use code something like the above, but I am not sure how to do it.
Suggestions?
Thanks!
Judge Hopkins
There are only two rules for success: (1) Never tell everything you know.
I have a text box control on a form where users enter a street address into. In the after update event procedure, I want to trim any leading and following spaces from the address. It would be nice to have double spaces removed also.
Thus, " 123 Main Street " would become "123 Main Street".
I know I have to use code something like the above, but I am not sure how to do it.
Suggestions?
Thanks!
Judge Hopkins
There are only two rules for success: (1) Never tell everything you know.