I have CR 7.5 running on server 2000 with SQL 2000.
when scheduling the report you have a choice of picking 1,2,3 or all locations. this part works fine but now the boss wants to be able to see which yards that he picked in the report. i wrote a formula to do this but it is not working right. if i select 1 location and have the count =1 location first in the formula then it works but if i select 2 or more yards then it does not work. if i select 2 yards and put the count = 2 first in the formula then it works. i have include part of the formula that i am using. I know just the basics on writing fomula and any help I would be great full. thank you
If count ({?YardID}) > 3 then
"All Yards"
else
If count ({?YardID}) = 1 then
If {?YardID} = 1 then
"home"
else
If {?YardID} = 2 then
"away"
else
If {?YardID} = 3 then
"here"
else
If {?YardID} = 7 then
"there"
else
If count ({?YardID}) = 2 then
If {?YardID} = 1 then
If {?YardID} = 3 then
"home and here"
else
If count ({?YardID}) = 2 then
If {?YardID} = 1 then
If {?YardID} = 2 then
"home and away"
else
If count ({?YardID}) = 2 then
If {?YardID} = 1 then
If {?YardID} = 7 then
"home and there"
else
If count ({?YardID}) = 2 then
If {?YardID} = 2 then
If {?YardID} = 3 then
"no where"
else
If count ({?YardID}) = 2 then
If {?YardID} = 2 then
If {?YardID} = 7 then
"everywhere"
else
If count ({?YardID}) = 2 then
If {?YardID} = 3 then
If {?YardID} = 7 then
"close to home"
else
If count({?YardID}) = 3 then
If {?YardID} = 1 then
If {?YardID} = 2 then
If {?YardID} = 3 then
"all but here"
else
If count({?YardID}) = 3 then
If {?YardID} = 1 then
If {?YardID} = 2 then
If {?YardID} = 7 then
"all but there"
else
If count({?YardID}) = 3 then
If {?YardID} = 1 then
If {?YardID} = 3 then
If {?YardID} = 7 then
"far far away"
else
when scheduling the report you have a choice of picking 1,2,3 or all locations. this part works fine but now the boss wants to be able to see which yards that he picked in the report. i wrote a formula to do this but it is not working right. if i select 1 location and have the count =1 location first in the formula then it works but if i select 2 or more yards then it does not work. if i select 2 yards and put the count = 2 first in the formula then it works. i have include part of the formula that i am using. I know just the basics on writing fomula and any help I would be great full. thank you
If count ({?YardID}) > 3 then
"All Yards"
else
If count ({?YardID}) = 1 then
If {?YardID} = 1 then
"home"
else
If {?YardID} = 2 then
"away"
else
If {?YardID} = 3 then
"here"
else
If {?YardID} = 7 then
"there"
else
If count ({?YardID}) = 2 then
If {?YardID} = 1 then
If {?YardID} = 3 then
"home and here"
else
If count ({?YardID}) = 2 then
If {?YardID} = 1 then
If {?YardID} = 2 then
"home and away"
else
If count ({?YardID}) = 2 then
If {?YardID} = 1 then
If {?YardID} = 7 then
"home and there"
else
If count ({?YardID}) = 2 then
If {?YardID} = 2 then
If {?YardID} = 3 then
"no where"
else
If count ({?YardID}) = 2 then
If {?YardID} = 2 then
If {?YardID} = 7 then
"everywhere"
else
If count ({?YardID}) = 2 then
If {?YardID} = 3 then
If {?YardID} = 7 then
"close to home"
else
If count({?YardID}) = 3 then
If {?YardID} = 1 then
If {?YardID} = 2 then
If {?YardID} = 3 then
"all but here"
else
If count({?YardID}) = 3 then
If {?YardID} = 1 then
If {?YardID} = 2 then
If {?YardID} = 7 then
"all but there"
else
If count({?YardID}) = 3 then
If {?YardID} = 1 then
If {?YardID} = 3 then
If {?YardID} = 7 then
"far far away"
else