Hi,
I have a Record Set object and I'm trying to find a particular record using the first name and last name (which are fields in the recordset).
I have FirstName = "John" and LastName = "Doe" and I'm trying to move thru the recordset using the movenext method and comparison using the line:
If objRS("FirstName" = FirstName And objRS("LastName" = LastName Then 'Do Something
But I can't get a result, even though John Doe is present in the table, this If stmt is returning false. I tried two nested If's as well but didn't work.
Thanks,
Sashi
I have a Record Set object and I'm trying to find a particular record using the first name and last name (which are fields in the recordset).
I have FirstName = "John" and LastName = "Doe" and I'm trying to move thru the recordset using the movenext method and comparison using the line:
If objRS("FirstName" = FirstName And objRS("LastName" = LastName Then 'Do Something
But I can't get a result, even though John Doe is present in the table, this If stmt is returning false. I tried two nested If's as well but didn't work.
Thanks,
Sashi