crogers111
Technical User
CR XI
SQL
I have a report that prompts the user for a BegDate and EndDate which are parameters in a Stored Procedure which is the data source.
I have a Crosstab in the Report Footer with the following:
Rows:
@Year
Columns:
@MonthName
These formulas are:
@Year
totext(Year({Table.Date}),0,"")
@MonthName
MonthName({@MonthNumber}, True)
@MonthNumber
month({Table.Date})
PROBLEM:
I need the Crosstab Columns to be sorted based on the BegDate entered by the user. i.e. If the user inputs 7/1/2008 for the BegDate, I need the Crosstab Column 1 to be July. If the user enters 1/1/2009 for the BegDate, then I need January to be Column 1 of the Crosstab.
How do I sort the columns so that they begin with the month of the BegDate entered by the user ?
SQL
I have a report that prompts the user for a BegDate and EndDate which are parameters in a Stored Procedure which is the data source.
I have a Crosstab in the Report Footer with the following:
Rows:
@Year
Columns:
@MonthName
These formulas are:
@Year
totext(Year({Table.Date}),0,"")
@MonthName
MonthName({@MonthNumber}, True)
@MonthNumber
month({Table.Date})
PROBLEM:
I need the Crosstab Columns to be sorted based on the BegDate entered by the user. i.e. If the user inputs 7/1/2008 for the BegDate, I need the Crosstab Column 1 to be July. If the user enters 1/1/2009 for the BegDate, then I need January to be Column 1 of the Crosstab.
How do I sort the columns so that they begin with the month of the BegDate entered by the user ?