T
TM
I have a table for a shopping list, with two fields: isle, and item.
I want to create a custom sort on the isle field that is a 5 character
alphanumeric field, but do not know how.
The field can contain a number, or an alpha and I want to take three alpha
fields and place them at the beginning of the table in this order:
"ENT" first
"PROD" second
"PHRM" third
any number from 1-16 next
I found a custom sort order string in an SQL server web page but can not
figure out how to do this in access or as a command string in my vb.net
application.
The custom search order goes like this:
SELECT *
FROM shoppinglist
ORDER BY
CASE isle
WHEN 'ENT' THEN 1
WHEN 'PROD' THEN 2
WHEN 'PHRM' THEN 3
ELSE 4
END
Any help is greatly appreciated.
I want to create a custom sort on the isle field that is a 5 character
alphanumeric field, but do not know how.
The field can contain a number, or an alpha and I want to take three alpha
fields and place them at the beginning of the table in this order:
"ENT" first
"PROD" second
"PHRM" third
any number from 1-16 next
I found a custom sort order string in an SQL server web page but can not
figure out how to do this in access or as a command string in my vb.net
application.
The custom search order goes like this:
SELECT *
FROM shoppinglist
ORDER BY
CASE isle
WHEN 'ENT' THEN 1
WHEN 'PROD' THEN 2
WHEN 'PHRM' THEN 3
ELSE 4
END
Any help is greatly appreciated.