LaurieHamlin
Programmer
I am using Crystal Reports 11 with an Access database. I need to pull a district number out of a string field then combine the various districts into a single string in order.
Taking the district out of the field works fine. When I take the nth smallest districts, I get:
11, 14, 16, 24, 1, 3, 4, 6, 7
instead of:
1, 3, 4, 6, 7, 11, 14, 16, 24
When I pull out the district, I tried both taking just the number and also taking the number and if it's <10 adding a 0 in front of it. It didn't make a difference.
I also tried using ToNumber(). I tried it in the formula that pulls the district out of the string. That didn't work. I tried it in the nth smallest formula. Still didn't work. I tried creating another formula that simply converts the district to number, and using that formula in the nth smallest formula and that didn't work.
I hope that's understandable.
Any ideas?
Thanks a million in advance.
Taking the district out of the field works fine. When I take the nth smallest districts, I get:
11, 14, 16, 24, 1, 3, 4, 6, 7
instead of:
1, 3, 4, 6, 7, 11, 14, 16, 24
When I pull out the district, I tried both taking just the number and also taking the number and if it's <10 adding a 0 in front of it. It didn't make a difference.
I also tried using ToNumber(). I tried it in the formula that pulls the district out of the string. That didn't work. I tried it in the nth smallest formula. Still didn't work. I tried creating another formula that simply converts the district to number, and using that formula in the nth smallest formula and that didn't work.
I hope that's understandable.
Any ideas?
Thanks a million in advance.