J
JohnLute
I posted this in the Forms Coding Area however it made sens to bring it here,
too.
Here's my design. Imagine reports instead of forms:
Main Form [frmFGPackConfigurations]
Subform [sfrmFGPackConfigsPhysicalAtts]
Subform of sfrmFGPackConfigsPhysicalAtts [sfrmFGPKConfigsPVs]
The following is in the unbound control
[sfrmFGPackConfigsPhysicalAtts].[SUCU]:
=IIf(Nz([SUcuin],0)<>0,[sfrmFGPKConfigsPVs].[Form]![SumPVTotalcuin]/[SUcuin],"1.00")
This returns as expected.
The following is in the unbound control
[sfrmFGPackConfigsPhysicalAtts].[SUcuin2]:
=IIf(Nz([SUcuin],0)<>0,[sfrmFGPKConfigsPVs].[Form]![SumPVTotalcuin],[SUcuin])
This does NOT return as expected. It displays the value in [SumPVTotalcuin]
regardless if there's a value in [SUcuin]. When [SUcuin] is Null then it
displays Null when it should be displaying [SumPVTotalcuin].
Any help you might have is greatly appreciated. This one just has me turning
in circles.
Thanks!!!
too.
Here's my design. Imagine reports instead of forms:
Main Form [frmFGPackConfigurations]
Subform [sfrmFGPackConfigsPhysicalAtts]
Subform of sfrmFGPackConfigsPhysicalAtts [sfrmFGPKConfigsPVs]
The following is in the unbound control
[sfrmFGPackConfigsPhysicalAtts].[SUCU]:
=IIf(Nz([SUcuin],0)<>0,[sfrmFGPKConfigsPVs].[Form]![SumPVTotalcuin]/[SUcuin],"1.00")
This returns as expected.
The following is in the unbound control
[sfrmFGPackConfigsPhysicalAtts].[SUcuin2]:
=IIf(Nz([SUcuin],0)<>0,[sfrmFGPKConfigsPVs].[Form]![SumPVTotalcuin],[SUcuin])
This does NOT return as expected. It displays the value in [SumPVTotalcuin]
regardless if there's a value in [SUcuin]. When [SUcuin] is Null then it
displays Null when it should be displaying [SumPVTotalcuin].
Any help you might have is greatly appreciated. This one just has me turning
in circles.
Thanks!!!