Hi, I hope someone can assist
I want to include a "catch-all" in the recordsource for a combo box.
This works for an Access based table:
SELECT DISTINCT rBST.Received_Date FROM rBST UNION Select "All" From rBST
ORDER BY rBST.Received_Date DESC;
However, when creating the table in SQL, I am required to format the date, i.e.,
SELECT DISTINCT Format$([Received_Date],'yyyy-mm-dd') AS Expr1
FROM rBST
ORDER BY Format$([Received_Date],'yyyy-mm-dd') DESC;
The above works, but now when I add the Union for 'All', e.g.,
SELECT DISTINCT Format$([Received_Date],'yyyy-mm-dd') AS Expr1
FROM rBST UNION Select "All" From rBST
ORDER BY Format$([Received_Date],'yyyy-mm-dd') DESC;
Can anyone assist to solve this, or is this coding not possible?
Thanks
I want to include a "catch-all" in the recordsource for a combo box.
This works for an Access based table:
SELECT DISTINCT rBST.Received_Date FROM rBST UNION Select "All" From rBST
ORDER BY rBST.Received_Date DESC;
However, when creating the table in SQL, I am required to format the date, i.e.,
SELECT DISTINCT Format$([Received_Date],'yyyy-mm-dd') AS Expr1
FROM rBST
ORDER BY Format$([Received_Date],'yyyy-mm-dd') DESC;
The above works, but now when I add the Union for 'All', e.g.,
SELECT DISTINCT Format$([Received_Date],'yyyy-mm-dd') AS Expr1
FROM rBST UNION Select "All" From rBST
ORDER BY Format$([Received_Date],'yyyy-mm-dd') DESC;
Can anyone assist to solve this, or is this coding not possible?
Thanks