longmatch
Programmer
- Nov 1, 2001
- 406
Dear ALL:
I met a problem when I ran my ASP code. When I ran this query code,
strSQLSummary = "SELECT Count(Prococedure) AS NOProcedure, category "
strSQLSummary = strSQLSummary & "FROM FORM_ID_198163500 WHERE BaylorID= """ & strSelectedName & """" & " AND category = """ & strSelectedCategory & """" & " GROUP BY category;"
there is no error. But when this query was include in if-endif clause, it gave me an error.
if Request.Form("startDate"
<> "" AND Request.form("endDate"
<> "" then
strSQLSummary = "SELECT Count(Prococedure) AS NOProcedure, category "
strSQLSummary = strSQLSummary & "FROM FORM_ID_198163500 WHERE BaylorID= """ & strSelectedName & """" & " AND category = """ & strSelectedCategory & """" & " GROUP BY category;"
end if
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/haijunw/summaryByresident.asp, line 4
What is the reason for that?
Thanks
Haijun
I met a problem when I ran my ASP code. When I ran this query code,
strSQLSummary = "SELECT Count(Prococedure) AS NOProcedure, category "
strSQLSummary = strSQLSummary & "FROM FORM_ID_198163500 WHERE BaylorID= """ & strSelectedName & """" & " AND category = """ & strSelectedCategory & """" & " GROUP BY category;"
there is no error. But when this query was include in if-endif clause, it gave me an error.
if Request.Form("startDate"
strSQLSummary = "SELECT Count(Prococedure) AS NOProcedure, category "
strSQLSummary = strSQLSummary & "FROM FORM_ID_198163500 WHERE BaylorID= """ & strSelectedName & """" & " AND category = """ & strSelectedCategory & """" & " GROUP BY category;"
end if
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/haijunw/summaryByresident.asp, line 4
What is the reason for that?
Thanks
Haijun