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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW Can I do this with Crystal 8.5 ??

Status
Not open for further replies.

krist

Programmer
May 30, 2001
114
ID
Hi,
I have a requirement to create 'Weekly Sales Report', a report with variable number of columns, with Crystal Rpt 8.5 .
below is the layout :
1) on first week of the month, the report will look like :
Customer Sales_Week_1
---------------------------
abc 9,999

2) on second week of the month, the report will look like :
Customer Sales_Week_1 Sales_Week_2
--------------------------------------------
abc 9,999 9,999

3) on third week of the month, the report will look like :
Customer Sales_Week_1 Sales_Week_2 Sales_Week_3
--------------------------------------------------------
abc 9,999 9,999 9,999
and so on..

The number of the weeks in a month could be different from month to month, between 4 to 5.

How can I do this with Crystal 8.5 ?
(assuming the data to be printed is already calculated in a Stored Procedure)

thanks in advance,
Krist


 
Hi!
The way that I would do this would be by conditionally suppressing columns 2 - 5. I would suppress them according to the date in the month. Check out the "DateDiff" function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top