Input Mask

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
 
B

Brendan Reynolds

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.
 
G

Guest

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.
 

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