A
Alberta Rose
In the query I'm trying to make, I have 7 fields. ContractNumber, CostCode,
CostType, EstimatedCost, ActualCost, EstimatedHours, ActualHours. I have
written the following IIf statement to put in this query.
=IIf(IsNull([costcode]) Or IsNull([costtype]) Or
IsNull([EstimatedCost])=0,0, IIf([costcode]="013210" and
[costtype]="05320",[txtEstimatedCost]/[txtCraftLabEst].
The txtEstimatedCost and txtCraftLabEst are fields on my report that I want
to use this IIf statement in. Also, this is only a very small portion of the
actual IIf statement that needs to be applied. It is too long to add to the
box in the detail area of the report as an IIf statement.
So my next attempt is to have this code in a query and then tie the query to
that field on the report. Once this is coded, it will be static (won't
change again) and multiple users will be using it.
The report that I need this information on is a View Closeout report that
the user can pull up by contract number. I'm not sure what other information
to give you, hopefully someone will help me find a ahaa moment!!
Thanks...Laurie
CostType, EstimatedCost, ActualCost, EstimatedHours, ActualHours. I have
written the following IIf statement to put in this query.
=IIf(IsNull([costcode]) Or IsNull([costtype]) Or
IsNull([EstimatedCost])=0,0, IIf([costcode]="013210" and
[costtype]="05320",[txtEstimatedCost]/[txtCraftLabEst].
The txtEstimatedCost and txtCraftLabEst are fields on my report that I want
to use this IIf statement in. Also, this is only a very small portion of the
actual IIf statement that needs to be applied. It is too long to add to the
box in the detail area of the report as an IIf statement.
So my next attempt is to have this code in a query and then tie the query to
that field on the report. Once this is coded, it will be static (won't
change again) and multiple users will be using it.
The report that I need this information on is a View Closeout report that
the user can pull up by contract number. I'm not sure what other information
to give you, hopefully someone will help me find a ahaa moment!!
Thanks...Laurie