>I have a form where the user can enter a search argument.
>I need to be able to store the user-entered value, including any trailing spaces they may enter.
>
>The Combo has Maxlength set to 0. The following tried in Valid().
>I tried first using the simple .Text property but its LEN() seems always to be 37.
>The Help for SelStart says:"
Setting SelStart to greater than the text length sets the property to the existing text length." so I thought I could put
This.SelStart = 500
in the code and use the new value of SelStart to get the entered length.
>Unfortuantely, I get the same length value - 37 - which seems to be what can fit in the entry area given the font size/type.
>
>Any ideas... or am I forced into using KeyPress()?
>
>Thanks
Hi Jim,
Did you check
Re: Determine Significant Trailing Spaces in controls Thread #
1245320 and thread referenced there?
If it's not broken, fix it until it is.
My Blog