Doozer1979
Registered User.
- Local time
- Today, 15:36
- Joined
- Jul 4, 2007
- Messages
- 32
Returning Null Values as Zero
Hello
I have three fields in a query all from the same table.
The Fields are:
DateRange, N
f_Orders, Priority
DateRange contains integers from 0 to 11, N
f Orders is a number field, and Priority contains either 'Y' or 'N'.
What i want to do is sum N
f_Orders where (DataRange is >0 AND <=8) AND Priority is equal to 'Y'
For some of theDateRange integers through 1-8 there will not be any orders where priority is equal to 'Y'. In those instances i want the query to return 0.
I've tried messing around with Nz but it still only returns the DateRange Integer where there are orders that exist.
Can anyone help? Do I need a subquery for this?
Hello
I have three fields in a query all from the same table.
The Fields are:
DateRange, N
DateRange contains integers from 0 to 11, N
What i want to do is sum N
For some of theDateRange integers through 1-8 there will not be any orders where priority is equal to 'Y'. In those instances i want the query to return 0.
I've tried messing around with Nz but it still only returns the DateRange Integer where there are orders that exist.
Can anyone help? Do I need a subquery for this?
Last edited: