I am in a bind. I am trying to calculate sales by month, compare those sales to what the client contracted for and look at the result as incremental growth.
I can calculate monthly sales from start of Contract Date. I can subtract contracted units per month based on contract date like so :
in an Update query:
Sales Incremental
[Sales.August] -[Seg.UnitsContracted])
Where ContractDate is <=#8/3104 and SalesDate Between #8/1/04# and #8/31/04#
I get the result I want - kind of...
The problem is this - I am trying to also populate 0 in those fields where the criteria requirment is not met (where ContractDate is >= #8/30/04#)
I tried setting a default value but it gets over written by a null string. I can't seem to figure out how to update the nulls to zero - aregular update query isn't working..
Any ideas?
I can calculate monthly sales from start of Contract Date. I can subtract contracted units per month based on contract date like so :
in an Update query:
Sales Incremental
Where ContractDate is <=#8/3104 and SalesDate Between #8/1/04# and #8/31/04#
I get the result I want - kind of...
The problem is this - I am trying to also populate 0 in those fields where the criteria requirment is not met (where ContractDate is >= #8/30/04#)
I tried setting a default value but it gets over written by a null string. I can't seem to figure out how to update the nulls to zero - aregular update query isn't working..
Any ideas?