>Hello,
>
>I want the user to enter some text that I will use to LOCATE in a field of a view. I want them to be able to enter any number of leading and trailing spaces; I'm having trouble detecting exactly what the user enters. Since I'm having trouble with this, I've set up a test w/the baseTextbox as the control txtLocate.
>
>The init method of txtLocate is:
>This.Value = ""
>
>There is no controlSource.
>
>In the valid method, the txtLocate.Value seems to be always padded on the right with trailing spaces, so that LEN( txtLocate.Value ) is 17. Anyone know why this is 17? why it's padded?
>
>What would be the best way to detect what the user entered, including trailing spaces?
>
>TIA, J
Jill,
Try to experiment with changing the width of this textbox and MaxLen property. If none helps, you still have a workaround using a KeyPress method, but it would be akward... :(
If it's not broken, fix it until it is.
My Blog