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

Creating a subreport which is linked to main report

Status
Not open for further replies.

Jefftopia

Programmer
Jul 30, 2002
104
US
Sound easy enough? I am not finding that to be the case.

My main report contains the numeric identifier WU_id. I am calling on the main report from VB6 using the following SelectionFormula:

CrystalReport.SelectionFormula = "{rptQryWriteUp.WU_id} = " & txtWU_id.Text & " "

My subreport (rptIndustryRatings) also contains the WU_id.

How do I bring my subreport into my main report and have subreport.WU_id = mainreport.WU_id?
 
In the design view of the main report, right click on the subreport and select change subreport links. In the pop up box, then select the field from the main report you want to link on and move it to the right I believe. You can then select the subreport field to link it to.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top