Ok heres a good one. I'ts probably just me being blond I'm sur there is a simple answer.
I have a table with an alphanumeric field that I need to sort.The field is formated as text.
There can be between one and six numbers leading the data.
There can also be zero to three letters trailing the data.
i.e. 1039; 237644; 7PV; 16; 641PV; 982A; 1039PA; Etc, etc.
I need to run a query based on this field.
When the query is run it needs to display the data Numeric first; folowed by alphanumeric.
All need to be in descending order and alphanumeric needs to be grouped alphabetically as well as numericaly desend
I.e the above examples should be listed:
16
1039
237644
982A
1039PA
7PV
641PV
I've tried doing this in a query but can't get my head around the sort criteria to get it to display in the right order.
I cannot alter the format of these alphanumeric identifiers because it is historic information and needs to remain as is.
There are approx 18000 records to sort.
I've looked at spliting the field and then re concatanating after a sort but I can't get that to work either.
Any ideas?
Would it be better to do this in code rather than an Access query? and if so, How?
Cheers
I have a table with an alphanumeric field that I need to sort.The field is formated as text.
There can be between one and six numbers leading the data.
There can also be zero to three letters trailing the data.
i.e. 1039; 237644; 7PV; 16; 641PV; 982A; 1039PA; Etc, etc.
I need to run a query based on this field.
When the query is run it needs to display the data Numeric first; folowed by alphanumeric.
All need to be in descending order and alphanumeric needs to be grouped alphabetically as well as numericaly desend
I.e the above examples should be listed:
16
1039
237644
982A
1039PA
7PV
641PV
I've tried doing this in a query but can't get my head around the sort criteria to get it to display in the right order.
I cannot alter the format of these alphanumeric identifiers because it is historic information and needs to remain as is.
There are approx 18000 records to sort.
I've looked at spliting the field and then re concatanating after a sort but I can't get that to work either.
Any ideas?
Would it be better to do this in code rather than an Access query? and if so, How?
Cheers