Cursor control on a data entry form

Hi
I have a data entry form, I want the cursor just after the default value, I add On Got Focus event but  does not work..
Private Sub DM_Number_GotFocus()
Me![DMNumber].SelStart = 4
Me![DMNumber].SelLength = 2
End Sub
Total data length of the field is 6. therefore allowed to add/enter 3 digits
I am expecting the cursor position 4th field of the text box, DMNumber is the text box name.
Even if it possible to position the cursor after the default value of the text box by property setting of the text box that would be great.
Also, how to make it allowed only capital letter in default, is there any setting in the table design make it possible or property setting of the textbox make it default as capital letter.

Thanks
alam747Asked:
Who is Participating?
 
Helen FeddemaConnect With a Mentor Commented:
If this is an Access form, you can use an Input Mask to set the number of characters, whether they can be numbers or letters, or the capitalization.  Open the Input Mask Help topic for more information.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.