I feel like I'm doing something very stupid. I'm using access 2007.
I've got a combobox, and I want the newest items (sortable by ProjectID or R_number - it doesn't matter) at the top.
The row source is
SELECT DISTINCTROW Projects.ProjectID, Projects.R_number, Projects.recv_date, Projects.Customer_name, Projects.PO_number, Projects.Customer_contact, Projects.Customer_addr1, Projects.technician
FROM Projects
WHERE (((Projects.invoice_number)='0'))
ORDER BY Projects.ProjectID DESC;
It does give the right result, except it doesn't sort descending. It sorts the same way as when I remove the DESC. If I press the dots next to the row source and press "view" it shows the results in a table, sorted correctly. I tried looking it up, but I only found advice to try "order by".
Did I miss the "sort rows by" option in the properties (I looked several times...)? Doesn't this work with large queries?
Thanks
I've got a combobox, and I want the newest items (sortable by ProjectID or R_number - it doesn't matter) at the top.
The row source is
SELECT DISTINCTROW Projects.ProjectID, Projects.R_number, Projects.recv_date, Projects.Customer_name, Projects.PO_number, Projects.Customer_contact, Projects.Customer_addr1, Projects.technician
FROM Projects
WHERE (((Projects.invoice_number)='0'))
ORDER BY Projects.ProjectID DESC;
It does give the right result, except it doesn't sort descending. It sorts the same way as when I remove the DESC. If I press the dots next to the row source and press "view" it shows the results in a table, sorted correctly. I tried looking it up, but I only found advice to try "order by".
Did I miss the "sort rows by" option in the properties (I looked several times...)? Doesn't this work with large queries?
Thanks