Change Input Mask

G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top