Passing subreport text box value to main report

TB11

Member
Local time
Today, 09:57
Joined
Jul 7, 2020
Messages
84
Hi. I keep getting errors when I try to pass the value of a text box on a subreport to the main report. (I'll need this value on another subreport.)

Main report is: r_Main

Control source of subreport is: Report.r_Main_subA

Text box on subreport is: TotalCosts

Can anyone help?

Thanks.
 
Have you tried something like?

=[SubReportControlName].Report.[TotalCosts]
 
@theDBguy I checked for typos, I've copied the subform control and the text box name from the property sheets. I've also tried the expression builder, but I still get #Error
 
@theDBguy I checked for typos, I've copied the subform control and the text box name from the property sheets. I've also tried the expression builder, but I still get #Error
Can you post some screenshots showing the Properties of your controls? Since we cannot see what you're doing, you'll have to show it to us.
 
@theDBguy thanks. I'm going to try on a simpler report. Maybe there is an issue with the report design
 
Have you actually used that Report prefix?
 

Users who are viewing this thread

Back
Top Bottom