Question display only positive values in a query

tselie115

Registered User.
Local time
Today, 10:00
Joined
Aug 10, 2008
Messages
44
hello guys !
plz check the attached screenshot of ma query.
what im tryin to do is to display only positive values of the calculated field "extra" in the query.
if i try to put >=0 in the criteria row of "extra", it asks to fill the paramters "receivedqty1", "issuedqty1" and "balance1"
can anybody help!!! plzz
 

Attachments

  • query.jpg
    query.jpg
    92.3 KB · Views: 200
This is because you are referencing alias' in your calculations. You need to use the original calculation of the alias to be able to put in > 0

FYI:
IIF(Isnull(x),0,x), where x is any field can be replaced by... NZ(x,0) or even Nz(x)
 
thanks for your help namliam but i replaced the IFF with NZ but no change occured.
in fact i used iff to be able to replace the null values with 0 to calculate the field "extra" when do data is in receivedqty or issuedqty.
any other idea that will allow me to use >=0 to show only positive values in this case?
 
thanks for you help man!
its solved.
Please check my attachement to see it
 

Attachments

  • querysolved.jpg
    querysolved.jpg
    86.8 KB · Views: 258
Well technicaly you would have to do...
NZ(Sum()) + NZ(Sum()) + etc...
not NZ(Sum + sum + Etc)

But glad you worked it out :)
 

Users who are viewing this thread

Back
Top Bottom