Bug in Access? Turn null values into zero...
This should be easy.
I have two tables, "Orders" and "Trucks", related by an order_id field. I run a query that returns all Orders records and only Trucks records that match an order_id, then I group by order_id. So I end up with a table something like this (but with more fields):
order_id | Truck Hours | Truck Rate | Total: Truck Hours * Truck Rate
1 | 25 | 2 | 50
2 | | |
3 | 34 | 2 | 68
Note the blank number of truck hours for order 2. Is there some way to get a Zero in that spot, so I can use that field in my calculation? I tried, in the Total expression, nz((hours*rate),0) but got a crazy number....
Thanks for any help!
This should be easy.
I have two tables, "Orders" and "Trucks", related by an order_id field. I run a query that returns all Orders records and only Trucks records that match an order_id, then I group by order_id. So I end up with a table something like this (but with more fields):
order_id | Truck Hours | Truck Rate | Total: Truck Hours * Truck Rate
1 | 25 | 2 | 50
2 | | |
3 | 34 | 2 | 68
Note the blank number of truck hours for order 2. Is there some way to get a Zero in that spot, so I can use that field in my calculation? I tried, in the Total expression, nz((hours*rate),0) but got a crazy number....
Thanks for any help!
Last edited: