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:

World's Fastest Bicycle Goes 75mph

Cycling enthusiasts, behold. Fastest bicycle in the world, designed by VARNA of British Columbia. Pretty impressive. Check it out, Barbara Buatois of France completes her new One Hour World Record at ...

Knit Your Food

Knitted delectable delights from Ed Bing Lee. Inspired? Gotta start somewhere. Previously, Crocheters Like to Party, Too. English Ladies Knit Entire Village.

Bomb-Proof Your Home With Wallpaper

Incredible. A company called Berry Plastics (in partnership with the U.S. Army Corps of Engineers) has developed a working bomb proof wallpaper. The technology has the ability to protect against both ...

Tattoo Yourself (or Your Girlfriend)

Henna. Beautiful, fun, exotic... and best of all... Do-It-Yourself (with a little practice). Also, unlike tattoos, it's temporary. Henna generally lasts for 1-3 weeks. An ancient tradition, henna is ...

The Mother of all Ping Pong Guns - LETHAL

The lethal pneumatic ping pong gun. This thing isn't exactly wife approved. Creator Ron Kessinger built this mighty powerful ping pong launcher - "a variation on a potato cannon, built to run on ...

loading...