A
askey
Guest
e.g. A query which looks for values = x in a table field then counts the instances of x returns no records. In a form a feild looks at the query results to display a value. If the query returns no results ie. count = 0 the the form won't display. How can I get the form field to default to 0 if the query returns no results.
Tried this as well
SELECT tbl_processed_data.Assess, IIf(Count(tbl_processed_data.Assess)=0,0,Count(tbl_processed_data.Assess)) AS CountOfAssess
FROM tbl_processed_data
GROUP BY tbl_processed_data.Assess
HAVING (((tbl_processed_data.Assess)=4));
[This message has been edited by askey (edited 04-16-2002).]
Tried this as well
SELECT tbl_processed_data.Assess, IIf(Count(tbl_processed_data.Assess)=0,0,Count(tbl_processed_data.Assess)) AS CountOfAssess
FROM tbl_processed_data
GROUP BY tbl_processed_data.Assess
HAVING (((tbl_processed_data.Assess)=4));
[This message has been edited by askey (edited 04-16-2002).]