Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Dlookup Syntax

$
0
0
I have been struggling with this for hours. I am unsure if I am taking the right approach or should do this another way. Any help would be greatly appreciated. This is for a user login form. I am making attempts to check and see if the password is valid against the username and if it is, then wanting to check to see if the [Password] is equal to the default word Password (assigned upon intially creating the record). Any help would be greatly appreciated. This is what I have been working and re-working. Thanks in advance.:o

Code:

If Me.txtPassword.Value = DLookup("[Password]", "tblUserLogin", "[Username] = ' & Me.cboUsername.Value and [Password]='Password' & "'"") Then

Viewing all articles
Browse latest Browse all 13329

Trending Articles