S
shank
Guest
I'm trying to use the switch function in an order by clause. It works except for descending attribute.
Example: COL="title_desc", GenKTitles.Title & " DESC" <-- this does not cause an error, but does not work either.
Example: COL="title_desc", GenKTitles.Title DESC <-- this causes a missing operator error
None of the DESC attributes work below. What is the proper syntax for getting DESC into this statement?
thanks!
==============
ORDER BY Switch(COL="orderno_asc", GenKStock.OrderNo, COL="title_asc",
GenKTitles.Title, COL="artist_asc", GenKTitles.Artist,
COL="description_asc", GenKStock.Description, COL="orderno_desc",
GenKStock.OrderNo & " DESC", COL="title_desc", GenKTitles.Title & " DESC",
COL="artist_desc", GenKTitles.Artist & " DESC", COL="description_desc",
GenKStock.Description & " DESC");
================
Example: COL="title_desc", GenKTitles.Title & " DESC" <-- this does not cause an error, but does not work either.
Example: COL="title_desc", GenKTitles.Title DESC <-- this causes a missing operator error
None of the DESC attributes work below. What is the proper syntax for getting DESC into this statement?
thanks!
==============
ORDER BY Switch(COL="orderno_asc", GenKStock.OrderNo, COL="title_asc",
GenKTitles.Title, COL="artist_asc", GenKTitles.Artist,
COL="description_asc", GenKStock.Description, COL="orderno_desc",
GenKStock.OrderNo & " DESC", COL="title_desc", GenKTitles.Title & " DESC",
COL="artist_desc", GenKTitles.Artist & " DESC", COL="description_desc",
GenKStock.Description & " DESC");
================