Input Mask

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I need to control the input mask of an object in a form using VB. I am
having troubles selecting the object. Any ideas how I do this?

Thanks
 
Here's an example ...

Forms("Employees").Controls("LastName").InputMask = "Password"

Note that the change will only be permanent if the form is open in design
view. If the form is open in normal form view, the change will be discarded
when the form is closed. If you want the change to be permanent but don't
want to open the form in design view, you'll need to store the value
somewhere and re-apply it in the Form_Open event procedure.
 
Thanks

Brendan Reynolds said:
Here's an example ...

Forms("Employees").Controls("LastName").InputMask = "Password"

Note that the change will only be permanent if the form is open in design
view. If the form is open in normal form view, the change will be discarded
when the form is closed. If you want the change to be permanent but don't
want to open the form in design view, you'll need to store the value
somewhere and re-apply it in the Form_Open event procedure.
 
Back
Top