G
Guest
I am trying to get this query which is sent to a report to sort by
[LeadDate]. I think I need to use ORDER BY but can't seem to get it to work.
Can anybody help?
thanks, Les.
SELECT
[Branch],[LeadDate],[CustomerName],[Rep],[ContractPrice],[PaymentMethod],[LeadSource],[Canvasser],[Units],[Product],[WeekNumber],[Year]
FROM [qryBentonOrders for Business Sheet]
UNION SELECT
[Branch],[LeadDate],[CustomerName],[Rep],[ContractPrice],[PaymentMethod],[LeadSource],[Canvasser],[Units],[Product],[WeekNumber],[Year]
FROM [tblOtherBranchSales]
WHERE [Year]=[Enter Other Branches Year] AND [WeekNumber]=[Enter Other
Branches Week Number];
[LeadDate]. I think I need to use ORDER BY but can't seem to get it to work.
Can anybody help?
thanks, Les.
SELECT
[Branch],[LeadDate],[CustomerName],[Rep],[ContractPrice],[PaymentMethod],[LeadSource],[Canvasser],[Units],[Product],[WeekNumber],[Year]
FROM [qryBentonOrders for Business Sheet]
UNION SELECT
[Branch],[LeadDate],[CustomerName],[Rep],[ContractPrice],[PaymentMethod],[LeadSource],[Canvasser],[Units],[Product],[WeekNumber],[Year]
FROM [tblOtherBranchSales]
WHERE [Year]=[Enter Other Branches Year] AND [WeekNumber]=[Enter Other
Branches Week Number];