Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Supress zero values based on value of other fields

Status
Not open for further replies.

souladventurer

Programmer
Jun 13, 2003
4
US
Hi,

My original question was answered, thanks!

New Question.

I have 3 currency fields, ex.fields a,b,c.

I need the query to hide rows under the following conditions:
when a,b,c all have zero values
when a has a value but b and c are zero
when b has a value but a and c are zero
etc.

Thanks in advance for help!
 
Try this. It should get you close.

Paul

SELECT MyTbl.a, MyTbl.b, MyTbl.c
FROM MyTbl
WHERE (((MyTbl.a)>0) AND ((MyTbl.b)>0) AND ((MyTbl.c)>0)) OR (((MyTbl.a)=0) AND ((MyTbl.b)>0) AND ((MyTbl.c)>0)) OR (((MyTbl.a)>0) AND ((MyTbl.b)=0) AND ((MyTbl.c)>0));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top