Button invisible if field in table is User

D

deb

Make button invisible based on field in a table.

I have a table that is used for security login.
tblSec - Fields are UserID and User_Type. (User_type is Admin or User)

The form "FSplashForm" has a button "btnAdmin".
I do not want the button or the button label to be visible if the user
logged in has the User_Type of User.

I do not know coding well enough to attempt it on my own.

Please help
 
R

Roger Converse

This example assumes your input box or text box on a form is named "Login"
and that your button is btnStart...

This would go in the After Update event.

If me.Login.value = "User" then

me.btnStart.visible = false

End if

Thanks,
Roger
 

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