Hi suehunt,
Is the count indicated by a checkbox/boolean type?
Try ...
SELECT COUNT(*), COUNT(smokers), COUNT(depression), COUNT(stress) FROM Results
Or ..
SELECT COUNT(*), COUNT(ALL smokers), COUNT(ALL depression), COUNT(ALL stress) FROM Results.
smokers, depression and stress are column names in Results.
smokers, depression and stress need to be null of you do NOT want to count them.
I use this mechanism in SQL Server, but MS Query does not understand it at all and thinks the query is corrupt.
Regards,
Richard Quadling.
Main Topics
Browse All Topics





by: Parax77Posted on 2005-04-04 at 07:02:17ID: 13697654
try using dlookup() to get a value from a table or query
y","Condit ions")
eg
=dlookup("MyValue","MyQuer