I really thought this would work. Maybe I'm looking at it wrong. When the user enters a customer number, I want the name of the company to appear. The customer number is supposed to match with the one in the file called CUSTNUM and display NAME. I get an error with this statement. What am I doing wrong?<BR>oQueryP = "SELECT NAME, CUSTNUM FROM PRDDTA732.F0101LA WHERE CUSTNUM = '" & Request.Form("cust") & "'"