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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

referencing textboxes on subreports

Status
Not open for further replies.

slames

Technical User
Nov 5, 2002
211
GB
I have 2 subreports in a report. I need to refer to the total field from each of these and show the total payable. When I use the following syntax it doesn't seem to recognise the field.
Report!ReportName!FieldName.

Can anyone help?

Thanks
Steph
 
The correct syntax should be:
=SubRptControlName.Report.txtTextBoxName
If there is a chance that the subreport will not have any data, then this will not calculate properly. You would need syntax like:
=IIf(SubRptControlName.Report.HasData, SubRptControlName.Report.txtTextBoxName,0)


Duane
MS Access MVP
 
Thanks, I've got that working now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top