how to set focus without highlighting text (1 Viewer)

Everton

Registered User.
Local time
Today, 03:55
Joined
Aug 10, 2000
Messages
34
Hi,

Is it possible to set the focus to a text box without highlighting the text already there? I have a text box which has a default value, and I set the focus to this when a new record is entered. I want users to be able to just type the rest of the field value, with the first part being the default value. At the moment if they just start typing, it overwrites the default text.

Any help much appreciated,
Paul
 

Keith P

Registered User.
Local time
Today, 03:55
Joined
Oct 11, 2000
Messages
122
try using selStart and selLength in the OnEnter event of the control, e.g.
me![myControl].setStart = me![myControl].selLength
 

Everton

Registered User.
Local time
Today, 03:55
Joined
Aug 10, 2000
Messages
34
I just set the SelStart property to 10 OnEnter which should cover all possibilities. Works fine.

Thanks, just what I needed.
Paul
 

Users who are viewing this thread

Top Bottom