troubleshooting Question

Order By specific order

Avatar of Fordraiders
FordraidersFlag for United States of America asked on
Microsoft Access
4 Comments2 Solutions394 ViewsLast Modified:
Access 2010

Is there a way to tell a query to do an order by in a specifc order ?


SELECT WwgCore.ITEM, WwgCore.SPIN
FROM WwgCore
WHERE (((WwgCore.SPIN)="ST" Or (WwgCore.SPIN)="TP" Or (WwgCore.SPIN)="LS" Or (WwgCore.SPIN)="C3" Or (WwgCore.SPIN)="C4"))
ORDER BY WwgCore.SPIN;

But I want it To return in this order specifically

ST
TP
LS
C3
C4

Thanks
fordraiders
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros