Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: pass date(in select record formula) to supreport Post Reply Post New Topic
Author Message
m_woot
Newbie
Newbie


Joined: 24 Jan 2012
Location: United States
Online Status: Offline
Posts: 2
Quote m_woot Replybullet Topic: pass date(in select record formula) to supreport
    Posted: 24 Mar 2012 at 4:32pm
I have a main report and sub report , where I can run the report from .NET application, so I have filters in my application. where the filter = record selection formula.

my filter is a specific date lets call is DATE_1 that I fill it in from the .NET application.

I want to store this filter and pass it to sub report and show the records in sub report that are 12 months earlier than this DATE_1.

my main question is how I can store this filter value in main report and show the 12 months earlier records in the sub report? I played a lot with linking records from main report to sub report , but still no luck.

any help is appreciated



IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 26 Mar 2012 at 3:49am
I would think that you would pass in the parameter/value from the main report ot the subreport.
 
Then in the subreport, alter it's filter criteria to be something like DATEADD("y", -1, {?parameterValue})
 
HTH
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.