Yes/No Field

D

Denver

i have this calculated field in my query, is there anyway i can sort and
display only those with YES value?how? anyone out there is kind to help me...

Red Line: Abs(Sum(IIf([Rd Line]=0,1,0))-([Total Records]))

thanks

denver
 
G

Golfinray

Try pulling Red Line into a query by itself, sort it, and then bring it back
into your main query.
 
A

Access101

I am unable to get the ABS criteria to work, but you can copy/paste this
query into your SQL View to illustrate how a separate field (WHERE CLAUSE) is
used to show only YES values:

SELECT IIf([Rd Line]=0,1,0) AS WhereVal, Abs(Sum(IIf([Rd
Line]=0,1,0))-([Total Records])) AS OtherVal
FROM [Red Line]
WHERE (((IIf([Rd Line]=0,1,0))=Yes));




Golfinray said:
Try pulling Red Line into a query by itself, sort it, and then bring it back
into your main query.

Denver said:
i have this calculated field in my query, is there anyway i can sort and
display only those with YES value?how? anyone out there is kind to help me...

Red Line: Abs(Sum(IIf([Rd Line]=0,1,0))-([Total Records]))

thanks

denver
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top