I'm using CR 8.5 and connecting to a SQL 2000 financial database. The database lists information by accounting period (varchar(2) field) and financial information is also split up by account period (period 1, period 2, with money amounts). In the CR I'm using a parameter value so a user can select which accounting period to look at (the report will be in Crystal Enterprise).
The report is arranged something like this:
Detail Section
Period, Account No., Description, Previous Period, Credit amount, Debit amount.
I've grouped on Account No.
The {?Period} parameter field is also a varchar(2) type field. When a user chooses the {?Period} field, then I want to display the previous period via the formula below. The current period data displays in the detail section of the report and someone suggested that this could be my problem. The {Period_1} field is a money data type field. I don't understand why this won't display the value of the field since I'm defining what should happen when a user selects the period parameter -- this is the formula that makes the most sense to me...
if {?Period} = '01' then {Period_1} //(the money field)
else if {?Period} = '02' then {Period_1}
else if {?Period} = '03' then {Period_2}
else if {?Period} = '04' then {Period_3}
else if {?Period} = '05' then {Period_4}
else if {?Period} = '06' then {Period_5}
else if {?Period} = '07' then {Period_6}
else if {?Period} = '08' then {Period_7}
else if {?Period} = '09' then {Period_8}
else if {?Period} = '10' then {Period_9}
else if {?Period} = '11' then {Period_10}
else if {?Period} = '12' then {Period_11}
If user selects 03 for the {?Period} parameter then my expected display under the headings listed above the result would be:
Period 03, Acct. No, Account Description, Period 02 amount, Period 3 credit amount, Period 3 debit amount
I get all the Period 3 data but the Period 2 previous amount is blank no matter what parameter you choose. I'm not an expert but I've never run into this problem and would appreciate any assistance or reference points. This is a simple accounting report where everyone wants to see current information and previous month's data in a column right next to current data.
The report is arranged something like this:
Detail Section
Period, Account No., Description, Previous Period, Credit amount, Debit amount.
I've grouped on Account No.
The {?Period} parameter field is also a varchar(2) type field. When a user chooses the {?Period} field, then I want to display the previous period via the formula below. The current period data displays in the detail section of the report and someone suggested that this could be my problem. The {Period_1} field is a money data type field. I don't understand why this won't display the value of the field since I'm defining what should happen when a user selects the period parameter -- this is the formula that makes the most sense to me...
if {?Period} = '01' then {Period_1} //(the money field)
else if {?Period} = '02' then {Period_1}
else if {?Period} = '03' then {Period_2}
else if {?Period} = '04' then {Period_3}
else if {?Period} = '05' then {Period_4}
else if {?Period} = '06' then {Period_5}
else if {?Period} = '07' then {Period_6}
else if {?Period} = '08' then {Period_7}
else if {?Period} = '09' then {Period_8}
else if {?Period} = '10' then {Period_9}
else if {?Period} = '11' then {Period_10}
else if {?Period} = '12' then {Period_11}
If user selects 03 for the {?Period} parameter then my expected display under the headings listed above the result would be:
Period 03, Acct. No, Account Description, Period 02 amount, Period 3 credit amount, Period 3 debit amount
I get all the Period 3 data but the Period 2 previous amount is blank no matter what parameter you choose. I'm not an expert but I've never run into this problem and would appreciate any assistance or reference points. This is a simple accounting report where everyone wants to see current information and previous month's data in a column right next to current data.