Chrafangau
Doing it wrong
- Local time
- Today, 22:00
- Joined
- Sep 9, 2013
- Messages
- 30
I'm having a small problem where Access returns a "Query too complex" error when I try to run a Union query of the form:
with more than 13 unions. I've managed to work around it, but it's messy and if anyone knows why this is occurring, where the limit is or has a better method, I would be interested in hearing it.
Code:
SELECT CourseNumber, CourseTitle, [Date], TotalScore, "Two (2) zero visibility dives?" AS [Question], CountZeroVisibility AS [NegativeResponses]
FROM qryScore
UNION ALL
SELECT CourseNumber, CourseTitle, [Date], TotalScore, "One (1) night dive?" AS [Question], CountNightDive AS [NegativeResponses]
FROM qryScore
UNION ALL
...etc