If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Crystal Reports > Posting of Monthly vs YTD Data in a Subreport

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-25-10, 14:36
peaches666 peaches666 is offline
Registered User
 
Join Date: Mar 2006
Posts: 11
Posting of Monthly vs YTD Data in a Subreport

Hello Everyone,

I am not sure if this question had been asked (and answered) but I need your help.

I have been researching this forum to find a solution in posting figures that are in a monthly date range vs year-to-date range.

To make it clearer:

I am creating an expense report in which I am using three subreports. They are linked to the main report using Subreport Link by the Business Code (Dept).

My issue is that in the subreports, I have columns created specifically in showing monthly figures based on the date (month/year) picked and keep the YTD figures as is.

I thought that maybe I create a formula to capture the #s for the monthly date range and also to share the values of the Start and End Dates throughout the other subreports, here is a sample:

WhilePrintingRecords;
Shared DateVar Enter_Date;
Shared DateVar End_Date;
Shared CurrencyVar Month_Actual;
Enter_Date:= Date({@Month_Date});
End_Date:= Date({@Month_EndDate});
//Month Formula
if {ActualVsPlan.Expense_Date}>= Enter_Date and {ActualVsPlan.Expense_Date}<=End_Date
then
Month_Actual:={ActualVsPlan.mth_Actual};
Month_Actual


The problem that I am having is that data (and its totals) are the same as the YTD 's totals.

Please let me know what I am doing wrong.

If you need more information, please let me know.

Thank you.
Reply With Quote
Reply

Tags
subreports

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On