P
Philip Martin
I have a query, selecting some data from a table. Then I want the data to be
presented in Ascending order of TIME. The SQL is:
SELECT BookingDetail.BookingDate, CateringTable.EatingTime,
BookingDetail.NumberInGroup
FROM BookingDetail LEFT JOIN CateringTable ON BookingDetail.BookingRefID =
CateringTable.BookingRefID
WHERE
(((BookingDetail.BookingDate)=[Forms]![FrmBookingDetailSub]![BookingDate]))
ORDER BY CateringTable.EatingTime;
The field [EatingTime] display's time as 12:00:00 when the query is run, but
it just wont ORDER properly, at least not to what I was expecting. The order
will be 13:00:00 down to 00:00:00 and then onto 12:45:00 (the recorded times
are in 15 minute segments). Thus a display of records would be something
like:
13:00:00
13:45:00
14:30:00
10:15:00
10:45:00
11:00:00
12:30:00
How do I get it to display in the logical time order??
TIA,
Philip Martin.
presented in Ascending order of TIME. The SQL is:
SELECT BookingDetail.BookingDate, CateringTable.EatingTime,
BookingDetail.NumberInGroup
FROM BookingDetail LEFT JOIN CateringTable ON BookingDetail.BookingRefID =
CateringTable.BookingRefID
WHERE
(((BookingDetail.BookingDate)=[Forms]![FrmBookingDetailSub]![BookingDate]))
ORDER BY CateringTable.EatingTime;
The field [EatingTime] display's time as 12:00:00 when the query is run, but
it just wont ORDER properly, at least not to what I was expecting. The order
will be 13:00:00 down to 00:00:00 and then onto 12:45:00 (the recorded times
are in 15 minute segments). Thus a display of records would be something
like:
13:00:00
13:45:00
14:30:00
10:15:00
10:45:00
11:00:00
12:30:00
How do I get it to display in the logical time order??
TIA,
Philip Martin.