Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically filtering data 1

Status
Not open for further replies.

eAlchemist

Technical User
Aug 28, 2003
64
US

I have a textbox that I'm using for the user to filter records in a form. As they type, I want to filter the recordset, so I use the onchange event to refresh the data. But, when I do form comes back with all of the text in the textbox highlited. Any way to prevent this or to get the cursor to appear at the end so that this is invisible to the user?

Thanks,
Chris
 
Take a look at the SelStart and SelLength properties of the TextBox object.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
try...

Me!nameoftextbox.SelStart = Me!nameoftexbox.SelLength

hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top