Go To first character of field

  • Thread starter Thread starter geebee
  • Start date Start date
G

geebee

Hi,

I have button in my form that tell the form to go to the
first record, and the last record and so forth
(navigation buttons). However, the foc8us is put on a
certain field of the record.

When users navigate through records, the code above makes
the value of the whole field highlighted. I guess this
is the default characterisitc, but I do not want this.

So I would like to know how you write code to go to the
first character or put the cursor before the first
character of the field without highlighting the value of
the field.

Thanks in advance,
geebee
 
In the On Enter event of the field put
Me!fieldname.SelStart = Me!fieldname.SelStart

Jim
 
Back
Top