A
awalker
Hi,
I am trying to run a query that has 4 fields: location, type, year, and
cost. However I need to increase the cost for the year 2007 for 2 types.
The IF statement I entered into the cost field is:
TotalCost:IIF([Type]="C" Or "H" And [Year]=2007,[SumCost]/.9,[SumCost])
The issue I am having is that it is increasing the costs for all types. Is
there a way to fix this or do i need a new query for C and H and then combine
the 2 queries? Thanks for any help you can provide.
I am trying to run a query that has 4 fields: location, type, year, and
cost. However I need to increase the cost for the year 2007 for 2 types.
The IF statement I entered into the cost field is:
TotalCost:IIF([Type]="C" Or "H" And [Year]=2007,[SumCost]/.9,[SumCost])
The issue I am having is that it is increasing the costs for all types. Is
there a way to fix this or do i need a new query for C and H and then combine
the 2 queries? Thanks for any help you can provide.