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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW TO DISPLAY ZERO IN COUNT QUERY 1

Status
Not open for further replies.

pelagic

Programmer
Nov 7, 2002
97
US
Hi All,
This is what I have in the table1
BEFORE AFTER
100 105
200 250
50 100
300 200
when I run and count query, I created another column named
RESULT. How would I display in RESULT column a ZERO when BEFORE is smaller than AFTER? The output might look like this:
RESULT
0
0
0
1
Any hint will help.
Thanks in advance
regards,
 
Go into the query design and put

Result: Iif(Before<After,0,1)

in a new column.

John

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top