Solved

Crystal Reports--SubReport

Posted on 2016-08-11
3
41 Views
Last Modified: 2016-08-12
Attempting to use Crystal to make a chain letter for our clinic.  Right now, I have a Group Header--that contains the bulk of the text, then various fields are sprinkled throughout that letter that pull each individual patient name.

The next step is where I'm tripping up--I would like to include all of their lab values from a table in the body of the letter, so I built a SubReport, that I would then interject into the Group Header at the proper location.

How do you pass each individual patient name into the subreport so that when the subreport runs in the group header--it pulls their specific lab values?  For example;


Dear {Person.FirstName}

Calling to write you about your lab results.  They were the following;

*SubReport*
{labvalues from within a date range passed through via the main report}



Dear {NextPerson.FirstName}

Thanks!
0
Comment
Question by:CMCITD
3 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 41752629
You can link the subreport to the main report.

Right click the subreport
CLick CHANGE SUBREPORT LINKS
Select the person's ID field (unique identifier for the person)
CLick the > to move it to the LINK ON box
Select the parameter the linking creates (?pm_FieldName)
CHoose to filter based on the field
Select the appropriate field in the subreport

mlmcc
0
 

Author Closing Comment

by:CMCITD
ID: 41752829
Terrific, thanks again mlmcc!
0
 
LVL 34

Expert Comment

by:James0628
ID: 41753576
FYI, you can also create parameters yourself in the subreport and use them in the record selection formula in the subreport, and then link fields/parameters from the main report to the subreport parameters that you created.  That's particularly useful if your tests are more complicated than just {?parameter} = {field}.

 James
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now