Jegajothy vythilingam
asked on
Access 2003. Syntax for FindFirst
Access 2003. Sntax for FindFirst. [Username] and [Password] are fields in the table tblLogin.
struserName and strPassword are captured from the Form using strUserName = Me......
The following syntax does not work. Can someone please correct it. Thanks.
Set db = CurrentDb
Set RS = db.OpenRecordset("tblLogin ")
RS.FindFirst "[Username] = '" & strUserName & "'" & "[Password] = '" & strPassword & "'"
struserName and strPassword are captured from the Form using strUserName = Me......
The following syntax does not work. Can someone please correct it. Thanks.
Set db = CurrentDb
Set RS = db.OpenRecordset("tblLogin
RS.FindFirst "[Username] = '" & strUserName & "'" & "[Password] = '" & strPassword & "'"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.