rparish
12-15-2006, 08:52 PM
I keep getting this error:
error '80004005'
/view_expense_report2x.asp, line 240
"SELECT SUM(cost) AS [RecordSum] FROM expensereport WHERE mydate BETWEEN #" & firstDate & "# AND #" & lastDate & "# and team='teamname' AND names='"&Request.QueryString("names")&"';"
There is no problem when I do this, but I need to have it only include what querys from the names field
"SELECT SUM(cost) AS [RecordSum] FROM expensereport WHERE mydate BETWEEN #" & firstDate & "# AND #" & lastDate & "# and team='teamname'"
Please let me know where I am going wrong.
error '80004005'
/view_expense_report2x.asp, line 240
"SELECT SUM(cost) AS [RecordSum] FROM expensereport WHERE mydate BETWEEN #" & firstDate & "# AND #" & lastDate & "# and team='teamname' AND names='"&Request.QueryString("names")&"';"
There is no problem when I do this, but I need to have it only include what querys from the names field
"SELECT SUM(cost) AS [RecordSum] FROM expensereport WHERE mydate BETWEEN #" & firstDate & "# AND #" & lastDate & "# and team='teamname'"
Please let me know where I am going wrong.