Question : Text control on Access form - double click highlights word

Hi
Have a text control on an Access 2003 form, cursor goes to the right of the last word.
Double clicking to the right of the last word highlights the word immediately to the left of the cursor.

In this application I dont want anything highlighted; is there any way I can turn off this behaviour. Have noticed if the last characater is a ) then it does not highlight the word in the parentheses. But I dont want parentheses closing off every last word in the text box. Unless I make it invisible but not sure how to do that. Maybe program a space after the last word. Am looking for an Access solution if there is one.

Many Thanks

Answer : Text control on Access form - double click highlights word

By "changing the text color" do you mean the property of the control? You don't want to use double click elsewhere to select a word - just not the last one?

A trailing space is just a partial solution. With the code it's the Event you're cancelling - not the event procedure. (The event is a UI action - it just also optionally first calls an event procedure - which can in turn cancel certain events).

Whatever code you did have in the DblClick event can remain there - just include the Cancel statement too.
Try it! :-)

Cheers

Random Solutions  
 
programming4us programming4us