BloodshotVandal
Registered User.
- Local time
- Today, 09:55
- Joined
- Nov 19, 2009
- Messages
- 17
Hi All
I was wondering if someone could help me with a problem I am having. I have the following code in one of my queries.
The problem is that everything is ordered in ascending order, whereas I need the records to be sorted in descending order when ordering by "Completed", "Started" and "Modified".
Please help
Thanks in advance
I was wondering if someone could help me with a problem I am having. I have the following code in one of my queries.
Code:
SELECT tblMain.Category, *
FROM tblMain
WHERE (((tblMain.Category)=[Forms]![frmMain]![cboFilter]))
ORDER BY Switch(isnull(Forms!frmMain!cboSort),tblMain.Reference,
Forms!frmMain!cboSort="Completed",tblMain.DateComp,
Forms!frmMain!cboSort="Started",tblMain.DateStarted,
Forms!frmMain!cboSort="Modified",tblMain.DateLastMod,
Forms!frmMain!cboSort="None",tblMain.Reference);
Please help
Thanks in advance