T
TonyWilliams via AccessMonster.com
Could someone help me to extend this sql to include:
1. a count of txtsole where the field is a YES/NO field and I want a count of
where the answer is YES
2. a count of txtmulti where the field is a YES/NO field and I want a count
of where the answer is YES
3. a count of txtsole where the field is a YES/NO field and I want a count of
where the answer is YES
4. a count of txtnbrparts where the field is a number field and I want a
count of where the answer greater than 1
I think I need to extend the WHERE statement?
SELECT tblhvdealspt1.txtablhybrid, Count(*) AS totals, tblhvdealspt1.txtmonth,
Count(tblhvdealspt1.txtdealnbr) AS CountOftxtdealnbr, Sum(tblhvdealspt1.
txtukline) AS SumOftxtukline
FROM tblhvdealspt1
WHERE (((tblhvdealspt1.txtablhybrid) In ("Pure ABL","HYBRID")))
GROUP BY tblhvdealspt1.txtablhybrid, tblhvdealspt1.txtmonth
HAVING (((tblhvdealspt1.txtmonth)=#3/1/2010#));
Thanks
1. a count of txtsole where the field is a YES/NO field and I want a count of
where the answer is YES
2. a count of txtmulti where the field is a YES/NO field and I want a count
of where the answer is YES
3. a count of txtsole where the field is a YES/NO field and I want a count of
where the answer is YES
4. a count of txtnbrparts where the field is a number field and I want a
count of where the answer greater than 1
I think I need to extend the WHERE statement?
SELECT tblhvdealspt1.txtablhybrid, Count(*) AS totals, tblhvdealspt1.txtmonth,
Count(tblhvdealspt1.txtdealnbr) AS CountOftxtdealnbr, Sum(tblhvdealspt1.
txtukline) AS SumOftxtukline
FROM tblhvdealspt1
WHERE (((tblhvdealspt1.txtablhybrid) In ("Pure ABL","HYBRID")))
GROUP BY tblhvdealspt1.txtablhybrid, tblhvdealspt1.txtmonth
HAVING (((tblhvdealspt1.txtmonth)=#3/1/2010#));
Thanks