Go To first character of field

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
 
J

Jim/Chris

In the On Enter event of the field put
Me!fieldname.SelStart = Me!fieldname.SelStart

Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top