A
Alberta Rose
OK, I have to try this again.
I have a convoluted issue and I hope I can describe it clear. I have a
report
(rptCloseout) that is fed from a query (qryLink). In the design mode of the
report, the "detail" area shows one line. When you run the report, all the
information for that contract comes in and has multiple lines on the report
view.
Now I need to do some calculations to show up in the detail area of
the report, but need to have my query recognize a specific cost code/cost
type
(the first two boxes in the detail line), and if this cost code/cost type is
for example 13210/5320, then perform a calculation that includes manhours
which are located in the report header area.
If it is not this combinatin of cost code/cost type, then continue to the
next cost code/cost type and check that. I know I need to add the formula to
the qryLink, but have no idea how to do it.
I have tried
txtEstPerMhr: IIf([costcode = 013210] and [costtype = 05320],
txtEstimatedCost/txtCraftLabEst, nul)
Also, would I put this formula in the qryLink, directly into the box on the
report or ???
Thanks in advance
I have a convoluted issue and I hope I can describe it clear. I have a
report
(rptCloseout) that is fed from a query (qryLink). In the design mode of the
report, the "detail" area shows one line. When you run the report, all the
information for that contract comes in and has multiple lines on the report
view.
Now I need to do some calculations to show up in the detail area of
the report, but need to have my query recognize a specific cost code/cost
type
(the first two boxes in the detail line), and if this cost code/cost type is
for example 13210/5320, then perform a calculation that includes manhours
which are located in the report header area.
If it is not this combinatin of cost code/cost type, then continue to the
next cost code/cost type and check that. I know I need to add the formula to
the qryLink, but have no idea how to do it.
I have tried
txtEstPerMhr: IIf([costcode = 013210] and [costtype = 05320],
txtEstimatedCost/txtCraftLabEst, nul)
Also, would I put this formula in the qryLink, directly into the box on the
report or ???
Thanks in advance