Change Input Mask

L

Lamar

Is there a way to change the Input Mask property of text box? Depending on
what a user selects I want a text box's input mask to change to one on the
following:

000000\-00;;_
or
000\-00\-0000;;_

Thank you.
 
P

pietlinden

Lamar said:
Is there a way to change the Input Mask property of text box? Depending on
what a user selects I want a text box's input mask to change to one on the
following:

000000\-00;;_
or
000\-00\-0000;;_

Thank you.

I should think so, if you set the InputMask property of the _control_
on the form, and _not_ in the field in the table. Then you should be
able to do something like this:

Select Case me.cboChooseMask
Case "A"
me.txtSomeTextControl.InputMask="000000\-00;;_"
case "B"
me.txtSomeTextControl.InputMask="000\-00\-0000;;_"
case else
....
End Select
 
Top