R
Ronin
Group i have this problem with this error, but i did not specify any grouping
in the subquery and i did try to specify one grouping in each where criteria
and still gives same error.
TRANSFORM First(tblType.Type) AS FirstOfType
SELECT tblMovies.MovieID, tblMovies.Title, tblMovies.Description, (SELECT
LName & ", " & FName AS Member FROM tblMember WHERE MemberID=(SELECT MemberID
FROM tblBarrowed WHERE MovieID=[MovieID]) AND isnull((SELECT DateReturned
FROM tblBarrowed WHERE MovieID=[MovieID]))) AS BarrowedBy
FROM (((tblMovies LEFT JOIN tblCatList ON tblMovies.MovieID =
tblCatList.MovieID) LEFT JOIN tblType ON tblCatList.TypeID = tblType.TypeID)
LEFT JOIN tblBarrowed ON tblMovies.MovieID = tblBarrowed.MovieID) LEFT JOIN
tblMember ON tblBarrowed.MemberID = tblMember.MemberID
GROUP BY tblMovies.MovieID, tblMovies.Title, tblMovies.Description
PIVOT tblType.TypeID;
Please help. I do not want to create a query within a query, but only one
query
Ronin
in the subquery and i did try to specify one grouping in each where criteria
and still gives same error.
TRANSFORM First(tblType.Type) AS FirstOfType
SELECT tblMovies.MovieID, tblMovies.Title, tblMovies.Description, (SELECT
LName & ", " & FName AS Member FROM tblMember WHERE MemberID=(SELECT MemberID
FROM tblBarrowed WHERE MovieID=[MovieID]) AND isnull((SELECT DateReturned
FROM tblBarrowed WHERE MovieID=[MovieID]))) AS BarrowedBy
FROM (((tblMovies LEFT JOIN tblCatList ON tblMovies.MovieID =
tblCatList.MovieID) LEFT JOIN tblType ON tblCatList.TypeID = tblType.TypeID)
LEFT JOIN tblBarrowed ON tblMovies.MovieID = tblBarrowed.MovieID) LEFT JOIN
tblMember ON tblBarrowed.MemberID = tblMember.MemberID
GROUP BY tblMovies.MovieID, tblMovies.Title, tblMovies.Description
PIVOT tblType.TypeID;
Please help. I do not want to create a query within a query, but only one
query
Ronin