You should be filtering the value from the FORM not the Recordset. You want to find the record entered in the form in your table. I'm not even sure why you have a RSLogin recordset on your page. A recordset should not be necessary on this page at all.