Hi, <BR>I am relatively new to ASP - and I am trying to search an access database, using user input via an HTML form. I am using the following if then statements to filter the fields returned from my original SQL statement. <BR>(my table is staff details and the field I am trying to search is StaffID)<BR><BR>If Not Request.Form.Item("StaffID") = "" Then<BR> SQLString = SQLString & " AND Staff_Details.StaffID=" & _<BR> Chr(39) & Request.Form.Item("StaffID") & Chr(39)<BR> End If<BR><BR>Is there a simply way to do this? or can anyone point me in the direction of a good tutorial.<BR>Many Thanks in Advance