T
TR
Hi Access MVPs,
I'm using Access 2003. I have a built a query that creates calculated
values. For example:
Price: [MatShip]+([MatShip]*[Markup])+[MatCredit]+
([LaborEngHrs]*[LaborEngPrice])+([LaborManuHrs]*[LaborManuPrice])+
[MngAdjust]
This part works fine. I'm able to use this calculated value in
another field in the same query to create another calculated value.
For example:
Difference: [Price]-[Cost]
What I'm having trouble with is that I'm trying to use that same
calculated value [Price] in the same query in a function. For
example:
IIf([Price]=0,1,2)
I'm getting prompted with "Enter Parameter Value" for "Price". Can
calculated values not be used in functions? Any thoughts?
Thanks in advance for your help.
- Tony
I'm using Access 2003. I have a built a query that creates calculated
values. For example:
Price: [MatShip]+([MatShip]*[Markup])+[MatCredit]+
([LaborEngHrs]*[LaborEngPrice])+([LaborManuHrs]*[LaborManuPrice])+
[MngAdjust]
This part works fine. I'm able to use this calculated value in
another field in the same query to create another calculated value.
For example:
Difference: [Price]-[Cost]
What I'm having trouble with is that I'm trying to use that same
calculated value [Price] in the same query in a function. For
example:
IIf([Price]=0,1,2)
I'm getting prompted with "Enter Parameter Value" for "Price". Can
calculated values not be used in functions? Any thoughts?
Thanks in advance for your help.
- Tony