SELECT Customer.FacilityName, Customer.CityStateZip, AccountTime.DATE,
AccountTime.SOR, ServiceEngineers.Initials, AccountTime.[Service Requested],
AccountTime.[Service Performed], AccountTime.CUSTOMER, AccountTime.[BILLED
REG HRS], AccountTime.[BILLED OT HRS], AccountTime.[BILLED REG TRA],
AccountTime.[BILLED OT TRA], AccountTime.[OC BILLED PARTS], AccountTime.[LIST
NC PARTS], AccountTime.[BILLED FREIGHT], AccountTime.[LABOR RATE],
AccountTime.[NC REG HRS], AccountTime.[NC OT HRS], AccountTime.[NC OT TRA],
AccountTime.[OC NC PARTS], AccountTime.[NC FREIGHT], AccountTime.[NC REG
TRA], AccountTime.RM, AccountTime.*
FROM ServiceEngineers INNER JOIN (Customer INNER JOIN AccountTime ON
Customer.CustomerID = AccountTime.CUSTOMER) ON ServiceEngineers.EngineerID =
AccountTime.ENGINEER
WHERE (((Customer.FacilityName)=[Customer?]) AND ((AccountTime.DATE) Between
[Start Date (Use 0/0/00 format)] And [Stop Date]))
ORDER BY AccountTime.DATE, AccountTime.SOR;
--
Radman
KARL DEWEY said:
Open the query in design view. Click on menu VIEW - SQL View. Highlight the
SQL statement that is in the query, copy and paste in a post.
:
It's not a SQL database, it's a mdb.
In the query, I have sort ascending on two different fields.
it sorts by the first (date field) but does not sort by the second (report
number field).
--
Radman
:
Post your SQL statement.
:
I have specified sort ascending in two different fields. (Report Date and
Report Number.)
The query is only sorting by the first field and ignoring the second.
What to do?