on 09-20-2018 3:40 PM
Hi there, I am new to Crystal reports and I have a crystal report that I need to sort on the Supp field, which currently contains alpha and numeric data, i.e
AB321234V
CA121432V
MHHA122421V
I need to sort the report into the ascending numeric part of this reference, so it ignores the letters in front.
any help would be much appreciated. thank you
I am using Crystal 2008
Hi Lindsey,
Create a formula with this code:
local stringvar s := {Alphanumeric Field};
local stringvar s2;
numbervar i;
for i := 1 to len(s) do
(
If isnumeric(s[i]) then
s2 := s2 + s[i];
);
toNumber(s2);
You should then be able to use this formula field in the Report Sort Expert.
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thank you I will try this in the morning. Much appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.