Thanks. Basically, the code I listed was just a generalization. The exact query is:
Dim objRS, objComm, strName
strName = Replace(UCASE(Request.Form("name")), "'", "''")
Set objComm = Server.CreateObject("ADODB.Command")
objComm.ActiveConnection = strConnect
objComm.CommandText = "SELECT name, case_number, case_subtype From ITDTRF01 WHERE name LIKE '" & strName & "%' " & _
"AND case_subtype NOT 'DUI'"
objComm.CommandType = adCmdText
Set objRS = objComm.Execute
Set objComm = Nothing
("AND case_subtype NOT 'DUI'") This is the part that I'm questioning.
|