Link to home
Start Free TrialLog in
Avatar of Jegajothy vythilingam
Jegajothy vythilingamFlag for United States of America

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 & "'"
ASKER CERTIFIED SOLUTION
Avatar of mbizup
mbizup
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial