|
i have a plain html page containing a form asking which tests request no the user wish to view then submit to an asp page for processing.
asp page:
<%
dim TestRequest
TestRequest = request.form ("txtTestRequestNo")
set conn=server.createobject("adodb.connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "c:/inetpub/wwwroot/database/HTC.mdb"
sql="Select * from tblCustomers, tblAbrasions where CustID=ID AND TestRequestNo = TestRequest"
Set rs=conn.execute(SQL)
%>
i got the following error when i add the part "AND TestRequestNo = TestRequest":
Microsoft JET Database Engine (0x80040E10)
No value given for one or more required parameters.
/project/report-sample.asp, line 18
without adding the part "AND TestRequestNo = TestRequest"; it just display all available test request nos (with its information), but i only want to display the request test requests by the user.
thanks
|