Link a subreport in Crystal to Details a and b in Main Report

I need a subreport where a StockCode in Details B and Operation in Details ...I have placed a Subreport in Details A

My sub report has @Initialize

WhilePrintingRecords;
Shared StringVar StockCode:={WipMaster.StockCode};
Shared StringVar Operation:={@@Operation};
Shared StringVar WorkCenter:={WipJobAllLab.WorkCentre};
Shared StringVar Narration:={WipJobAllLab.Narration};

I am linking to StockCode, Operation, and WorkCenter

and trying to get the result in Details D from subreport but it is not coming out

formula for @Narration that I want to see in Details D


Shared StringVar StockCode;
Shared StringVar Operation;
Shared StringVar WorkCenter;
Shared StringVar Narration;

if StockCode  = {WIPJobStatusQuery/JobStatus/Job.StockCode}
and Operation = {WIPJobStatusQuery/JobStatus/Job/MaterialOperation.Operation}
and WorkCenter = {WIPJobStatusQuery/JobStatus/Job/MaterialOperation.WorkCentre}
then Narration

Else ''

What am I doing wrong??
Michael KatzAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
Are you sure the subreport is being linked properly?

Is there data in the subreport?

mlmcc
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Michael KatzAuthor Commented:
I will double check the link.. but do I have the concept right on my shared variable and placement of the sub report??
0
mlmccCommented:
It sounds like it.  But since it isn't working, either there is no data or you have it implemented wrong in some way.

If you want upload the report file and I'll look at it.

mlmcc
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.