Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
An [blue]AutoExec[/blue] macro is a macro that automatically runs when you first open the Db. Its constructed in the [blue]Macros[/blue] window, and would start your [blue]custom login form.[/blue]cmmd2003 said:[blue]What is an AutoExMacro . . .[/blue]
You can [blue]store the passwords directly[/blue] in the table or thru some type of [blue]Registration Form.[/blue]cmmd2003 said:[blue] . . . , and when do I store the passwords?[/blue]
You don't say which part you completed, then you immediately ask for code!cmmd2003 said:[blue]Now ive done that what code do i need to add to link these tables.[/blue]
[blue]Private Sub Command6_Click()
Dim Msg As String, Style As Integer, Title As String
Dim DL As String, Cri As String
DL = vbNewLine & vbNewLine
Cri = "[Lname] = '" & Me!LogIn & "' AND " & _
"[Password] = '" & Me!Password & "'"
If IsNull(DLookup("[Password]", "[LogInDet]", Cri)) Then
Msg = "LastName and/or Password Not Found!" & DL & _
"You'll have to try again . . ."
Style = vbCritical + vbOKOnly
Title = "Login Error! . . ."
MsgBox Msg, Style, Title
Me!Password = ""
Me!LogIn = ""
Me!LogIn.SetFocus
Else
DoCmd.OpenForm "[purple][b][i]SwitchBoardName[/i][/b][/purple]"
End If
End Sub[/blue]