Cari Blog Ini

11 April 2013

How To send or pass a Parameter or Value from Primary Report To Sub Report

Apply To: Crystal Report 9.2

Problem : 

* How To send or pass a Parameter or Value from Primary Report To Sub Report


Description :
* Want to send a value from Form Input column "Our Ref" = LETTER/049/CP/2013,
to Sub Report name "AN-09-001-01-Sub Report.rpt"



Example:
Primary Report = AN-09-001-01.rpt
Sub Report = AN-09-001-01-Sub Report.rpt


Screenshoot of Problem :


Solution :

1. In Primary Report = AN-09-001-01.rpt, Create Parameter Fields, Example = OurRef. 




and
In Sub Report =AN-09-001-01-Sub Report.rpt, Create Parameter Fields, Example = OurRef.


2. Create linking Parameter Fields between Primary Report and Sub Report. 

With right-click at the Sub Report = AN-09-001-01-Sub Report.rpt, 

and choose "Change Subreport  Links..."









3. Save again for file Primary Report and Sub Report.

4. Try again to Reload the form.



Source:
Andoko Chandra