Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Reports

Status
Not open for further replies.

msnreddy

Programmer
May 31, 2003
8
US
Hi,
I have startdate and enddate fields in database and
using these fields i have to print all weeks between startdate and enddate, and these week values should come on
crystal report Page Header. how can i do this.
can anybody help me please....

Msr
 
Are you trying to create columns of data by week, i.e., do you want to show each week of n number of weeks going across with corresponding data below each heading? If so, you could try inserting a crosstab with your date field as the column. Then click on the datefield and choose "Group Options" and choose "column will be printed for each week."

If this is the format you want, but the crosstab doesn't have enough flexibility for your needs, you could also create a manual crosstab to get your detail fields by creating formulas like:

if {table.date} in Date(2003, 05, 18) to Date(2003, 05, 24) then {table.amt}

if {table.date} in Date(2003, 05, 25) to Date(2003, 06, 01) then {table.amt}

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top