Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Input Masks

Status
Not open for further replies.

vepz

Technical User
May 3, 2005
30
US
Can one field on a form cause the input mask in a second field to change based on the value in the first field?

Thanks,

Greg
 

I've never had a need for this, but how about something like this...
Code:
Select Case Me.txtFirstField
    Case [i]CriteriaA[/i]:
        Me.txtSecondField.InputMask = [i]InputMaskA[/i]
    Case [i]CriteriaB[/i]:
        Me.txtSecondField.InputMask = [i]InputMaskB[/i]
    Case Else:
        Me.txtSecondField.InputMask = [i]Default[/i]
End Select

Randy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top