K
Kelvin Leong
Hi there,
I have a field that stores 4 digit numbers as text. I would like these
numbers to be filtered so that the duplicate digits are removed and each
remaining digit is sorted ascendingly. I want to maintain the original
numbers and the filtered number, as the following, can be shown in a query or
report. The following are some exampls of numbers (as text) and the result
that I want:
1811 => 18
2929 => 29
0313 => 130
5359 => 359
If you noticed, the digits are arranged accending, except for the number 0
where it is put last. Is there a way to do so? Do I need to create a public
function so that I can use it in the query? Please help.
Thanks.
I have a field that stores 4 digit numbers as text. I would like these
numbers to be filtered so that the duplicate digits are removed and each
remaining digit is sorted ascendingly. I want to maintain the original
numbers and the filtered number, as the following, can be shown in a query or
report. The following are some exampls of numbers (as text) and the result
that I want:
1811 => 18
2929 => 29
0313 => 130
5359 => 359
If you noticed, the digits are arranged accending, except for the number 0
where it is put last. Is there a way to do so? Do I need to create a public
function so that I can use it in the query? Please help.
Thanks.