I can't write the sum of a certain colum in a table of a db.
<%
sql_Sum_Tax="SE LECT SUM(vtax) AS sql_Sum_Tax_RS_ Var FROM orderstats
WHERE vcompletedate BETWEEN "& startDate &" AND "& endDate & ";"
Set sql_Sum_Tax_RS = Server.CreateOb ject("ADODB.Rec ordset")
sql_Sum_Tax_RS. Open sql_Sum_Tax, conn1
%>
<%=sql_Orders_P laced_RS("sql_O rders_Placed_RS _Var")%>
That last line generates this error:
ADODB.Recordset error '800a0cc1'
Item cannot be found in the collection corresponding to the requested
name or ordinal.
Suggestions? Thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
<%
sql_Sum_Tax="SE LECT SUM(vtax) AS sql_Sum_Tax_RS_ Var FROM orderstats
WHERE vcompletedate BETWEEN "& startDate &" AND "& endDate & ";"
Set sql_Sum_Tax_RS = Server.CreateOb ject("ADODB.Rec ordset")
sql_Sum_Tax_RS. Open sql_Sum_Tax, conn1
%>
<%=sql_Orders_P laced_RS("sql_O rders_Placed_RS _Var")%>
That last line generates this error:
ADODB.Recordset error '800a0cc1'
Item cannot be found in the collection corresponding to the requested
name or ordinal.
Suggestions? Thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Comment