Yes that's the kind of thing I'm looking for except that I need to compare the user's password and name to his/her record in the user table. So I'm comparing the name and password in a query and then I want the button to disappear or not accordingly. They pick their name from a list which is set so that's fine but then their password needs to match the one that is stored with there name in the a table.
I'll try have a fiddle tho
----- Mike Painter wrote: ----
Katherine said:
I need to create a button that does one thing if a user enters the righ
thing and another if the user enters the wrong thing. It is probably and I
Else thing but I don't know the right way to do it. Can someone helpIn the on-click event something like
If Me!EnterAName = "Mike" the
msgbox "You idiot I told you not to use that name.
Els
msgbox "good for you
Endi
Note that a button is not needed here since it could be run from EnteraName
You could also use something lik
If Me!EnterAName = "Mike" the
Me!Yourbutton.visible = fals
Els
Me!Yourbutton.visible = Tru
Endi