A calculated field in subreport is not being referenced in Mainreport

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mazharkuri
    New Member
    • Apr 2013
    • 1

    A calculated field in subreport is not being referenced in Mainreport

    I have a calculated control in sub report called "total-price". Now I want to reference this control value to a new control in main report. Is there any body to help ?
  • Seth Schrock
    Recognized Expert Specialist
    • Dec 2010
    • 2965

    #2
    You can reference controls on subforms/subreports. I know the exact wording for subforms, so I'll give you that and make the guess on the subreports :)
    Code:
    Me.Subform_Name.Form.Control_Name
    Note: the subform_name is not necessarily the name of the form inside the subform control. If you use the wizard, it defaults to the same, but you can change it. You need to use the name of the subform control.

    Now for my guess on the subreport:
    Code:
    Me.Subreport_Name.Report.Control_Name
    Unfortunately I don't have a report that has a subreport so I can't test this, but I'm almost positive that it is correct.

    Comment

    Working...