I have a primary key, ULI, that has patient numbers in the format of #####-####, which are blacked out in the picture. The problem is the low number ULI's are substitutes for the real ones and I need a way to get the highest of these low numbers, but they are stored as text (because of the dash inbetween the numbers).
I cut out all the real ULI patient numbers using a query, but when I order the query in ascending, it goes 1, 10, 11, 2, 3, 4, 5, 6 etc. What I need is some way to parse/convert all of this text into actual numbers, which would order properly when sorted ascending (1, 2, 3.... 4, 5, 6, 7, 8, 9, 10, 11, 12 etc)
How can I do this?
I cut out all the real ULI patient numbers using a query, but when I order the query in ascending, it goes 1, 10, 11, 2, 3, 4, 5, 6 etc. What I need is some way to parse/convert all of this text into actual numbers, which would order properly when sorted ascending (1, 2, 3.... 4, 5, 6, 7, 8, 9, 10, 11, 12 etc)
How can I do this?