Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass value from main report to subreport 1

Status
Not open for further replies.

Lhuffst

Programmer
Jun 23, 2003
503
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top