CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Nov 2014
    Posts
    3

    Smile Filter data in subreport based on a value passed from main report

    Hi All,
    In the crystal report that I have designed, has a main report and a subreport.
    A date value from main report has to be passed to the subreport and based on that date, the records should be filtered.
    What I have done is created a shared variable for this date value in the main report,like below. The value is pulled to report and is showing the correct value in main report.

    WhilePrintingRecords;
    shared datevar shdtvlu;
    shdtvlu:={@dtvlu1};


    Same has been created in subreport and is showing the date value, correctly,in the subreport.

    shared datevar shdtvlu;
    shdtvlu;


    Now the result in the subreport ,should be filtered ,based on this value.
    Records should be selected , which are less than this date value.

    Can anyone please guide me on this regard?

    Thanks to all the helping hands out there..
    Last edited by DV1983; December 24th, 2014 at 03:32 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured