Hi guys,
Would you please do me a favor and check if there is something wrong with the coding below? (It's just a part of it of course)
strMovieCDI = CStr(rsSQL("MOVIE_CD".Value)
intMovie_cdI = CInt(strMovieCDI)
strSQLeval = "SELECT SUM(RATING) AS SUM_RATING, COUNT(RATING) AS COUNT_RATING " & _
"FROM RATINGS_MOVIES WHERE MOVIE_CD = " & intMovie_cdI
Now, the field MOVIE_CD is an integer in my DB. I thought I took all the precautions I could, but I occasionally get this error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2.
(Please don't tell me that my fields are incorrectly spelled...I've checked that already.)
If someone could help me, I would REALLY appreciate it. I've been stumped by this one for a while now.
Thanks a lot!
Daph
Would you please do me a favor and check if there is something wrong with the coding below? (It's just a part of it of course)
strMovieCDI = CStr(rsSQL("MOVIE_CD".Value)
intMovie_cdI = CInt(strMovieCDI)
strSQLeval = "SELECT SUM(RATING) AS SUM_RATING, COUNT(RATING) AS COUNT_RATING " & _
"FROM RATINGS_MOVIES WHERE MOVIE_CD = " & intMovie_cdI
Now, the field MOVIE_CD is an integer in my DB. I thought I took all the precautions I could, but I occasionally get this error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e10'
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2.
(Please don't tell me that my fields are incorrectly spelled...I've checked that already.)
If someone could help me, I would REALLY appreciate it. I've been stumped by this one for a while now.
Thanks a lot!
Daph