Hello,
Im building a login form for an Access Data base, i keep getting the error "compile Error: Method or data member not found" when i try to test the form. when i debug it highlights the the folowing text in the code: .Value/
The code i have it VBA is:
Private Sub LogOnBtn_Click()
Dim ID As Long, PW As String
ID = Nz(DLookup("UserID", "USerIDT", "UserName=""" & UserName & """"), 0)
If ID = 0 Then
MsgBox "User not found"
Quit
End If
PW = Nz(DLookup("Password", "UserIDT UserID=" & ID), "")
If PW <> Password Then
Quit
End If
TempVars("username") = UserName.Value <--------This is what is highlighted with the error.
End Sub
Thank you in advance