WHERE rowID NOT IN (another recordset on same page?)
Hi.
I have a recordset that lists movie reviews. On the same page, I have a menu that lists movies, for review.
I want to hide movies, in that list, if they already exist in the users recordset of reviews.
In other words, if the user has already submitted a movie review, I don't want them to be able to submit another review for the same movie.
As I understand it, I can use the NOT IN function in my SELECT statement for my movie recordset, but I'm not sure how to call the movieID from the review recordset, in this statement.
I'm aiming for something like this:
rsUserReviews
reviewID
movieID
rsMovies
movieID
In the movie recordset I need to do something like this:
SELECT movieID, moviename FROM dbo.movies WHERE movieID NOT IN (SELECT movieID FROM rsUserReviews)
Is this possible?
Appreciate any advice. Thanks.
Nath.