Header Banner
wonderhowto.mark.png
Gadget Hacks Next Reality Food Hacks Null Byte The Secret Yumiverse Invisiverse Macgyverisms Mind Hacks Mad Science Lock Picking Driverless

How to Password protect databases with Microsoft Access

Oct 17, 2008 05:59 PM
Code editor interface displaying a programming script.

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 login form and password protecting your database.

Here's the code:

Username.SetFocus

If Username = "user1" And Password = "user1" Then

MsgBox "Access Granted", vbInformation, "CD Shop"

MsgBox "Welcome", vbInformation, "CD Shop"

DoCmd.Close

DoCmd.OpenForm "F_Switchboard"

Else

MsgBox "Please re-enter your Username and Password."

End If

For more information, including detailed instructions on how to implement the above code, watch this MS Access how-to.

You already know how to use your phone. With Gadget Hacks' newsletter, we'll show you how to master it. Each week, we explore features, hidden tools, and advanced settings that give you more control over iOS and Android than most users even know exists.

Sign up for Gadget Hacks Weekly and start unlocking your phone's full potential.

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!