Access inputmask password

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

Guest

Hi
I've designed in access , a password form in which a textbox,cancel and Ok
commands are used . In form timer I wrote an If code as follows :
<< If text.text="password" then OKcmd.enabled=True
<< If text.text<>"password" then OKcmd.enabled=False

The code runs and works well , but when textbox.inputmask is set to
"password" astrisk(*) , I receive run time error 2196 and it doen't work
anymore.

I wanna know what's the problem

Thanks A Lot
 
sheerkoshan said:
Hi
I've designed in access , a password form in which a textbox,cancel
and Ok commands are used . In form timer I wrote an If code as
follows : << If text.text="password" then OKcmd.enabled=True
<< If text.text<>"password" then OKcmd.enabled=False

The code runs and works well , but when textbox.inputmask is set to
"password" astrisk(*) , I receive run time error 2196 and it
doen't work anymore.

I wanna know what's the problem

Thanks A Lot

"Text" is a reserved word in Access so if you named your TextBox that change
it. Also you likely want the Value property instead of the Text property.
 
Back
Top