Move Cursor to first space in field (1 Viewer)

bheylman

New member
Local time
Today, 14:03
Joined
May 31, 2001
Messages
7
I am using a form to allow the user to put in Social Secruity Number which is a field that has an input mask ###-##-####
When you click in the text box it puts the cursor wherever you click. I would like to cursor to automatically move to the left to make it easier to enter. Do I use the ON Enter property to write an event procedure? Thanks
 

jjturner

Registered User.
Local time
Today, 14:03
Joined
Sep 1, 2002
Messages
386
Use the OnClick event for your control.

In the code module, paste the following line:

Sendkeys "{F2}"

Note: This will prevent the User from being able to position the cursor with the Mouse for that particular control.

HTH,
John
 

Users who are viewing this thread

Top Bottom