[AccessD] Position cursor at beginning of field

Tom Bolton tom.bolton at donnslaw.co.uk
Tue Sep 13 10:01:09 CDT 2005


I presume your field is a bound textbox on a form?

On the gotfocus event of the textbox, manipulate the sellength, selstart,
and seltext properties to position the cursor.

This should do the trick.

Cheers
Tom

-----Original Message-----
From: Gina Hoopes [mailto:hoopesg at hotmail.com] 
Sent: 13-Sep-2005 15:48
To: AccessD at databaseadvisors.com
Subject: [AccessD] Position cursor at beginning of field

Is it possible to set the cursor at the beginning of a field on got focus? I

often provide people with an input mask for a date field but if they click 
into the field instead of tabbing (or Enter-ing) in they end up having 
trouble getting the date in correctly.



Thanks,
Gina


-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
-------------- next part --------------

The contents of this message and any attachments are the property of Donns Solicitors 
and are intended for the confidential use of the named recipient only.  They may be legally
 privileged and should not be communicated to, or relied upon, by any other party without 
our written consent.  If you are not the addressee, please notify us immediately so that we 
can make arrangements for its return.  You should not show this e-mail to any person or
 take copies as you may be committing a criminal or civil offence for which you may be
 liable.  The statement and opinions expressed in this e-mail message are those of the 
writer, and do not necessarily represent that of Donns Solicitors.  Although any files attached
 to this e-mail will have been checked with virus protection software prior to transmission, 
you should carry out your own virus check before opening any attachment.  
Donns Solicitors does not accept any liability for any damage or loss which may be caused 
by software viruses...


More information about the AccessD mailing list