First of all, it is bad practice to make ad-hoc requests without using parameters. SQL Injection Attack Information: http://en.wikipedia.org/wiki/SQL_injection
To answer the question, you need to have single quotes around your varchar or char value that you are looking for.
set rs = Server.CreateObject("ADODB.recordset") sql = " SELECT * from COMPANY WHERE COMPANY_ID = '" & Request.Form("CompanyId") & "'" rs.Open sql, cnn
source share