Hi,
Got a question for you guys. Say I have this in my code:
strSQL = "SELECT DISTINCT MOVIES.MOVIE_CD, TITLE
FROM MOVIES ORDER BY MOVIES.MOVIE_CD DESC"
Set rsSQL = objDBConn.Execute(strSQL)
varMovieCD = rsSQL("MOVIE_CD".Value
And in my table, the field MOVIE_CD is a number, is
varMovieCD a number as well? Or a string?
--
Another question: Is there a problem in doing this afterwards?
strSQLRating = "SELECT SUM(RATING) AS SUM_RATING
FROM RATINGS_MOVIES
WHERE MOVIE_CD = " & varMovieCD
Set rsSQLRating = objDBConn.Execute(strSQLRating)
Thanks for the help
Daph
Got a question for you guys. Say I have this in my code:
strSQL = "SELECT DISTINCT MOVIES.MOVIE_CD, TITLE
FROM MOVIES ORDER BY MOVIES.MOVIE_CD DESC"
Set rsSQL = objDBConn.Execute(strSQL)
varMovieCD = rsSQL("MOVIE_CD".Value
And in my table, the field MOVIE_CD is a number, is
varMovieCD a number as well? Or a string?
--
Another question: Is there a problem in doing this afterwards?
strSQLRating = "SELECT SUM(RATING) AS SUM_RATING
FROM RATINGS_MOVIES
WHERE MOVIE_CD = " & varMovieCD
Set rsSQLRating = objDBConn.Execute(strSQLRating)
Thanks for the help
Daph