Entering Data Into Input Mask - Frustrating

james_IT

Registered User.
Local time
Today, 19:50
Joined
Jul 5, 2006
Messages
208
Hi guys,

not sure which section to post this so i hope here is ok...

ive made an input mask for a postcode field. problem is its really annoying having to click the beginning of the field to enter data in the correct area of the input mask. Is there a way to automatically set the cursor to the beginning of the input mask/field when it is clicked?

thanks, James
 
focus

Try putting this in the gotfocus event of that field

Me.ActiveControl.SelStart=0
 
it didnt work for the ongotfocus event but it worked for the click event...thanks for the code
 
If IsNull(Me.ActiveControl) Then
Me.ActiveControl.SelStart = 0
End If

works well if you don't always want to jump to the beginning of a field, say if the field already contains data and the user may want to highlight portions of it for editing....
 

Users who are viewing this thread

Back
Top Bottom