Change Query

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

--


My Query has 2 fields Item;Cost; how can I sort descending Cost first, then
descending Item next, tried putting the Cost on left in my query but then my
Combo Drop down list shows Cost first instead of Item...Thanks for any
help..Bob
 
Oops I change the Row source to:
SELECT QryDailyRate.ServiceInfo, QryDailyRate.Rate FROM QryDailyRate;
Does this look ok?......Thanks Bob
 
It's missing the ORDER BY clause, but otherwise it looks okay.

SELECT ServiceInfo, Rate FROM QryDailyRate ORDER BY Rate DESC, ServiceInfo
 
Thanks Douglas I will change it.....Bob

Douglas J. Steele said:
It's missing the ORDER BY clause, but otherwise it looks okay.

SELECT ServiceInfo, Rate FROM QryDailyRate ORDER BY Rate DESC, ServiceInfo
 
When I changed to your script, the Combo Box would not select the record.
So I Did a A-Z sort on Rate in my table and uesed this script
SELECT ServiceID, ServiceInfo, Rate, ynMonthly FROM tblServiceInfo ORDER BY
ServiceInfo;
Works Ok but it does not sort a-z on Service if they are the same price
Thanks Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top