Seph
Member
- Local time
- Today, 23:39
- Joined
- Jul 12, 2022
- Messages
- 72
Good day everyone,
I have a Text Box at the bottom of my report called Subtotal, which acts as a calculated field:
=[InvoiceJobRSF1].[Report]![LabourTotalSum]+[InvoiceJobRSF2].[Report]![CostTotalSum]+[InvoiceJobRSF3].[Report]![TravelTotalSum]
InvoiceJobRSF1, InvoiceJobRSF2 & InvoiceJobRSF3 are Subforms on the report that Subtotal references in its calculations.
It works well, but here's the catch.
Not all reports have values in each subform as some subforms references items not billed to the client.
So when a Subform is "null" the calculation gives a #type error.
Which is most likely due to one missing filed in the SUM used in Subtotal.
Is there a way (perhaps an IIF command) that will essentially "ignore" the missing Subform so the calculated field doesn't break?
Thanks!
I have a Text Box at the bottom of my report called Subtotal, which acts as a calculated field:
=[InvoiceJobRSF1].[Report]![LabourTotalSum]+[InvoiceJobRSF2].[Report]![CostTotalSum]+[InvoiceJobRSF3].[Report]![TravelTotalSum]
InvoiceJobRSF1, InvoiceJobRSF2 & InvoiceJobRSF3 are Subforms on the report that Subtotal references in its calculations.
It works well, but here's the catch.
Not all reports have values in each subform as some subforms references items not billed to the client.
So when a Subform is "null" the calculation gives a #type error.
Which is most likely due to one missing filed in the SUM used in Subtotal.
Is there a way (perhaps an IIF command) that will essentially "ignore" the missing Subform so the calculated field doesn't break?
Thanks!