Change the input mask on a field

RickDB

Registered User.
Local time
Today, 10:32
Joined
Jun 29, 2006
Messages
101
say I have a drop down list to declare a data type, is it possible to update the input mask for another field based on this data type?

Example:

Input Type A : 000/000/0000
Input Type B : 0/00/000/0000

Seems simple enough with some VB If Then code, I just have no idea how it would be done, and my searches have been ineffective.

Thanks for any help.
 
if your target field is text1 then in the after update event of the combo box just put something like


if a... then Text1.InputMask = "999/999/999"
if b... then Text1.InputMask = "99*9-999(999)"

this displays the variable masked accordingly

just search for help on inputmask
 

Users who are viewing this thread

Back
Top Bottom