Create a multiuser login system in Microsoft Access

Create a multiuser login system in Microsoft Access

The Microsoft Office Access 2007 relational database manager enables information workers to quickly track and report information with ease thanks to its interactive design capabilities that do not require deep database knowledge. In this Microsoft Access video tutorial, you'll learn about creating a multi-user login form to password protect different areas of your database.

Here's the code:

Username.SetFocus
If Username = "staff1" And Password = "staff1" Then
MsgBox "Access Granted", vbInformation, "CD Shop"
MsgBox "Welcome", vbInformation, "CD Shop"
DoCmd.Close
DoCmd.OpenForm "F_Switchboard"
ElseIf Username = "staff2" and Password = "staff2" Then
MsgBox "Access Granted", vbinformation, "CD Shop"
MsgBox "Welcome", vbinformation, "CD Shop"
DoCmd.Close
DoCmd.OPenForm "F_Switchboard"
ElseIf Username = "manager1" and Password = "manager1" Then
MsgBox "Welcome, Manager", vbinformation, "Manager Area"
MsgBox "Please Exercise Caution When Altering Back End", vbinformation, "Manager Area"
DoCmd.Close
DoCmd.OPenForm "F_Switchboard_Manager"
Else
MsgBox "Please re-enter your Username and Password."
End If

For step-by-step instructions on implementing the above code and creating your own multiuser login system in Microsoft access, watch this how-to.

Hosted by youtube.com
Creator's Site: www.youtube.com/user/Firchild
Curated By: rmansur

Comments

Add your comment:

Indian Spiderman Defies Gravity (and Death)

Real life spiderman, Jyothi Rai of India, spends his time entertaining tourists by scaling walls of the Chitradurga Fort. The daredevil works completely harness free. Apparently Jyothi is a ...

Creepy Crawler Ant Robot

Wow, this robot has incredible movement. "A-Pod is an ant inspired hexapod robot with a 2 DOF abdomen (tail), a 3 DOF head with large mandibles. 6 legs with 3 DOF each. Total 25 servos ...

Remote Control Your Lawn Mower

Time to make those lazy Sunday afternoons even lazier. Instructables member johndavid400 has posted a full HowTo on modding your lawn mower to operate via remote control. " ...How to make your ...

Why Buy a Car When You Can Build-It-Yourself?

BBC show Top Gear has built a homemade electric car in just 18 hours: the Hammerhead Eagle i-Thrust. According to Autocar,  "...the Hammerhead Eagle i-Thrust is a road legal car/shed that ...

Obama! Are You Eating that Chicken Wing Correctly?

Yes, there is a right way and a wrong way to eat a chicken wing. And yes, Obama likes chicken wings just like everybody else does. Here's how you do it, courtesy of Food Wishes (also, here's several ...

loading...