Link to home
Start Free TrialLog in
Avatar of urjudo
urjudoFlag for United States of America

asked on

sort Time by AM and PM in query

Hi Experts,
I have a question about sorting hours by AM and PM
currently I have a tblCourtTime and have a auto# as primary key,  we entered time, for example: we have 8:30 AM, 9:05 AM, 1:20 PM etc.  what  I want to do is create a query but will list all AM then PM, some time I have to enter 8:45 AM, so 8:45 AM is going to under 8: 30 AM.  I know I can not sort by Auto#.  any idea?  Thanks

here is my query:
SELECT tblCourtTime.CourtTime
FROM tblCourtTime;
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Try..

SELECT * FROM
tblCourtTime
ORDER BY tblCourtTime /* ASC OR DESC /