Input Mask - 2 Questions

wilderfan

Registered User.
Local time
Today, 00:24
Joined
Mar 3, 2008
Messages
172
I have created an input mask for one of the fields on a form.

The mask is >"TC"00;0;# meant to show up as TCxx within the field.

When the form is opened, the mask is not visible. (Note: The form opens at the end of the existing list of records in order to add a new record).

When tabbing to the field, it remains blank.

However, when a letter (other than t or c) is typed, the mask appears and the cursor blinks at the first character position. Type in a number and the cursor will jump to the 3rd character position.

Question 1: How can I make the input mask visible when the form is first opened?

Question 2: Is it possible to tab to the field and have the cursor immediately go to the 3rd character position?

Thanks for your help.
 
keep your input mask. add "TC" as the default value. add:
Code:
Private Sub FieldName_Enter()
    Me.FieldName.SelStart = 2
End Sub
 

Users who are viewing this thread

Back
Top Bottom