Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: COMMAND statement needed! Post Reply Post New Topic
Author Message
Jenny
Newbie
Newbie


Joined: 11 Jun 2009
Online Status: Offline
Posts: 15
Quote Jenny Replybullet Topic: COMMAND statement needed!
     Posted: 24 Oct 2012 at 10:32am
I need to create a COMMAND SQL statement in Crystal 2008 that breaks out the date parameters when the From and To parameters are entered.
My prameters are @To_Month, @To_Year, @From_Month, @From_Year. The parameters are being passed in the stored procedure that is attaached to the crystal report.
When the user enters November 2011 to January 2012 for the report parameters, the report needs to break each month out to show the monthly break down. So the first months should show Nov 1, 2011 to November 2011, then the next month, Dec. 1, 2011 to Dec. 31, 2011 and the last month will be Jan 1, 2012 to Jan 31, 2012.

My problem is the report is keeping the same FROM and TO year. So I have Nov 1, 2011 to Nov 30, 2012, Dec 1, 2011 to Dec 31, 2012 and Jan 1, 2011 to Jan 31, 2012. This is not the parameters broken out by month.

Any assistance would be greatly appreciated.
IP IP Logged
comatt1
Senior Member
Senior Member
Avatar

Joined: 19 May 2011
Online Status: Offline
Posts: 337
Quote comatt1 Replybullet Posted: 25 Oct 2012 at 7:45am
are you using a crosstab?
IP IP Logged
Jenny
Newbie
Newbie


Joined: 11 Jun 2009
Online Status: Offline
Posts: 15
Quote Jenny Replybullet Posted: 25 Oct 2012 at 11:33am
No,I'm not.
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum