Guest_imported
New member
- Jan 1, 1970
- 0
Hi:
I have a web app that was originally intended for a SQL database. For reasons I cant get into we had to use a Access database. As a result the SQL statements are incorrect, and we get the following error:
"Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC Microsoft Access 97 Driver] Too few parameters. Expected 1.
/mss/includes/displays/dsp_sidebar.cyb, line 12"
Here is the refrenced code:
<%
' loop thru months to create second-level nodes
for j = 0 to UBound(Months)
rs.open "SELECT count(id) FROM Responses WHERE DatePart(mm,datecompleted) = " & (j + 1), cn
ctRow = rs(0)
k = 0
' determine the currently selected month
blnActive = j = C8Int(dt) and dt <> ""
' determine appropriate image for this node
NodePlusImage = iff(j < 11,"splus","b_splus"
NodeNoImage = iff(j < 11,"sub","b_sub"
Level2NodeImage = iff(rs(0)>0, NodePlusImage, NodeNoImage)%>
If anyone can help I would greatly appreciate it!!!!!!!
-E
I have a web app that was originally intended for a SQL database. For reasons I cant get into we had to use a Access database. As a result the SQL statements are incorrect, and we get the following error:
"Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC Microsoft Access 97 Driver] Too few parameters. Expected 1.
/mss/includes/displays/dsp_sidebar.cyb, line 12"
Here is the refrenced code:
<%
' loop thru months to create second-level nodes
for j = 0 to UBound(Months)
rs.open "SELECT count(id) FROM Responses WHERE DatePart(mm,datecompleted) = " & (j + 1), cn
ctRow = rs(0)
k = 0
' determine the currently selected month
blnActive = j = C8Int(dt) and dt <> ""
' determine appropriate image for this node
NodePlusImage = iff(j < 11,"splus","b_splus"
NodeNoImage = iff(j < 11,"sub","b_sub"
Level2NodeImage = iff(rs(0)>0, NodePlusImage, NodeNoImage)%>
If anyone can help I would greatly appreciate it!!!!!!!
-E