I need to pass a date value from the main report if there isn't any corresponding record in the subreport.
in the I have a field text10 that has this as a control source =[Reports]![UserReport570]![ncvalue]
where userreport570 is the mainreport.
Requirements are if there isn't any record in the subreport query (which is valid), then use the ncvalue from the mainreport
My text box in the subreport is
=IIf(IsNull([EnforceDate]),[Text10],[EnforceDate])
so if there isn't an enforce date on the subreport query, then print the ncvalue from the main query
I keep getting blanks when I run the report.
Did I reference the value from the main report wrong?
Thanks
in the I have a field text10 that has this as a control source =[Reports]![UserReport570]![ncvalue]
where userreport570 is the mainreport.
Requirements are if there isn't any record in the subreport query (which is valid), then use the ncvalue from the mainreport
My text box in the subreport is
=IIf(IsNull([EnforceDate]),[Text10],[EnforceDate])
so if there isn't an enforce date on the subreport query, then print the ncvalue from the main query
I keep getting blanks when I run the report.
Did I reference the value from the main report wrong?
Thanks