Assuming you got the choice back in your asp page into a variable I'll call bLastName, do something like
...
...
strSql = "SELECT * FROM table WHERE "
If bLastName = True Then
strSql = strSql & "LastName LIKE '%" & Request.Form("text") & "%'"
Else
strSql = strSql & "FirstName LIKE '%" & Request.Form("text") & "%'"
End If
======
Doug G
======