troubleshooting Question

How prevent user from openein a form from a main menu if the form they are trying to open has a tag of "Secure"

Avatar of SteveL13
SteveL13Flag for United States of America asked on
Microsoft Access
4 Comments1 Solution49 ViewsLast Modified:
I have a main menu form.  On that main menu form are several command buttons that have a tag of "Secure".  If the user clicks on one of the buttons that is set to open a "Secure" form, I want a password form to open and have the user enter a password.  If the password equals DLookup("[dbPassword]", "tblSetup") then let them proceed.  

If the password they enter does not equal the DLookup, present a message form and Do NOT let them in.

How can I do this from the onclick event of the form?  Or if it can't be done this way, how?

????
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros