RealityCheque
Technical User
SUMMARY:
I'm using Crystal 9 to report on 2 tables, one of which has a many->one relationship with the other (I have also tried this with one table, producing the same results). I have no idea what is causing this problem so I'm going to go into as much detail as possible below.
The long and the short of it is that when the report is run it adds additional pages onto the end. While in crystal or a 3rd party viewer the extra pages are not viewable - for example you cannot view past page 5 of 8 - but they are there when the report is printed, complete with duplicate data to the previous pages.
Needless to say, I need to get rid of these additional pages, aside from anything else they're messing up my manual running totals!
DETAILS:
The records are selected using 2 parameters {?StartDate} and {?Future}, and 2 formulas {@DateDiff1) and {@CTargetDate}.
{@CTargetDate} just converts a string from the table into a date format, {@DateDiff1} calculates the difference between said converted string and the date parameter selected. The select expert itself selects any record where the difference is between '1' and the {?Future} parameter. The records are sorted by groups of {@DateDiff1}, giving the result of each days records together.
FORMULAS:
{@DateDiff1}:
Local DateTimeVar d2 := {@CTargetDate};
Local DateTimeVar d1 := {?StartDate};
DateDiff ("d", d1, d2) -
DateDiff ("ww", d1, d2, crSaturday) -
DateDiff ("ww", d1, d2, crSunday)
Select Expert:
{@DateDiff1} in 1.00 to {?Future}
Simon
"I do not have to forgive my enemies. I have had them all shot."
- Ramon Maria Narvaez
I'm using Crystal 9 to report on 2 tables, one of which has a many->one relationship with the other (I have also tried this with one table, producing the same results). I have no idea what is causing this problem so I'm going to go into as much detail as possible below.
The long and the short of it is that when the report is run it adds additional pages onto the end. While in crystal or a 3rd party viewer the extra pages are not viewable - for example you cannot view past page 5 of 8 - but they are there when the report is printed, complete with duplicate data to the previous pages.
Needless to say, I need to get rid of these additional pages, aside from anything else they're messing up my manual running totals!
DETAILS:
The records are selected using 2 parameters {?StartDate} and {?Future}, and 2 formulas {@DateDiff1) and {@CTargetDate}.
{@CTargetDate} just converts a string from the table into a date format, {@DateDiff1} calculates the difference between said converted string and the date parameter selected. The select expert itself selects any record where the difference is between '1' and the {?Future} parameter. The records are sorted by groups of {@DateDiff1}, giving the result of each days records together.
FORMULAS:
{@DateDiff1}:
Local DateTimeVar d2 := {@CTargetDate};
Local DateTimeVar d1 := {?StartDate};
DateDiff ("d", d1, d2) -
DateDiff ("ww", d1, d2, crSaturday) -
DateDiff ("ww", d1, d2, crSunday)
Select Expert:
{@DateDiff1} in 1.00 to {?Future}
Simon
"I do not have to forgive my enemies. I have had them all shot."
- Ramon Maria Narvaez