matrixindicator
IS-IT--Management
In my form I have a calculated field that takes a subtotal form a subform. The subform is always visible.
I need the same construction also on my reports.
So I use a subreport to get a subtotal. The problem here is that if there is not a subtotal the subform is not showed and the calculated field in my report give then an #error. If there is a subtotal it works.
So I need to verify if there is a subform visible ? How can I verify that ? With an IIF statement, ok. But how to say if there is no subform visible just take a default value else take the subtotal or should I do something else.
I need the same construction also on my reports.
So I use a subreport to get a subtotal. The problem here is that if there is not a subtotal the subform is not showed and the calculated field in my report give then an #error. If there is a subtotal it works.
So I need to verify if there is a subform visible ? How can I verify that ? With an IIF statement, ok. But how to say if there is no subform visible just take a default value else take the subtotal or should I do something else.