mraetrudeaujr
Technical User
I had to change my check boxes to an 'Option Group' to prevent users from checking more than one box. Of course, a problem has arisen. The SQL that worked before will not (due to deleting the previous four fields that were related to the check boxes). My data is intact (I ran an update query and everything is neatly tucked in one field). I went back and tried to modify the SQL but apparently I have syntax errors. Anyways, I cannot get it right. I would appreciate someone taking a look at this to straighten it out.
Briefly, I have one field that is carrying four 'Options'. They are; VR (1), WA/NTA (2), TOT (3), and None (4). The last item (None) doesn't matter as far as the final report is concerned.
Thanks in advance.
Briefly, I have one field that is carrying four 'Options'. They are; VR (1), WA/NTA (2), TOT (3), and None (4). The last item (None) doesn't matter as far as the final report is concerned.
Code:
SELECT [STATION],
Sum([DISPOSITION]),1, AS [VOLUNTARY RETURN],
Sum([DISPOSITION]),2, AS [WA/NTA]
Sum([DISPOSITION]),3, AS [TURNED OVER TO OTHER AGENCY],
FROM tbl_reinstatement
WHERE STATION Is Not Null
GROUP BY [STATION]
UNION ALL SELECT "Total"
Sum([DISPOSITION]),1
Sum([DISPOSITION]),2
Sum([DISPOSITION]),3
FROM tbl_reinstatement
WHERE STATION Is Not Null;
Thanks in advance.