Solved

Crystal Reports--SubReport

Posted on 2016-08-11
3
76 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 101

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 35

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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

626 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