[AccessD] SelPos etc.

Bob Gajewski rbgajewski at adelphia.net
Fri Oct 24 06:49:21 CDT 2008


Arthur

You might want to also be sure that the entire field is then selected ...

    txtboxname.SelStart = 0
    txtboxname.SelLength = Nz(Len(txtboxname), 0)

Regards,
Bob Gajewski


-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten
Sent: Thursday, October 23, 2008 13:28 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] SelPos etc.

Hi Arthur

try

 txtboxname.selStart = 0 in the onClick event.

HTH

Bill


----- Original Message -----
From: "Arthur Fuller" <fuller.artful at gmail.com>
To: "Access Developers discussion and problem solving" 
<accessd at databaseadvisors.com>
Sent: Thursday, October 23, 2008 10:07 AM
Subject: [AccessD] SelPos etc.


I need to guarantee that when a user clicks a date control, the cursor will
appear at position 1 within the control. Currently it appears wherever you
happen to click the mouse, and this has been deemed unacceptable by the
client. I've tried various things like .ctl.SelPos = 1 and it's not working.


Any suggestions?

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

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




More information about the AccessD mailing list