Tuesday 22 July 2008

2.26 Password Login Form / screen using VBA in Access

Title:
2.26 Password Login Form / screen using VBA in Access


Video:


Description:Creating a Login Form and password protecting your database Here's the code I used: 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

Published:
23/Jul/2008

No comments:

Post a Comment