urjudo
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;
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SELECT * FROM
tblCourtTime
ORDER BY tblCourtTime /* ASC OR DESC /