Hello,
I have a very simple union query (Query1) that combined dates from 2 tables (Tbl1 and Tbl2). A combobox show the result of this query. However, I can't have the union query to keep:
1) the descending order asked
2) the "Medium Date" format of the original data
Here is the result of individual queries on Tbl1 and Tbl2
And this is the results from the union query (Query1)
Here is the SQL of my union query:
Is there a way that I can have the results of Query1 in DECENDING order as I asked for in My SQL statement?
I have a very simple union query (Query1) that combined dates from 2 tables (Tbl1 and Tbl2). A combobox show the result of this query. However, I can't have the union query to keep:
1) the descending order asked
2) the "Medium Date" format of the original data
Here is the result of individual queries on Tbl1 and Tbl2
Code:
Payment Date Submitted (Tbl1)
02-May-03
01-May-03
30-Apr-03
29-Apr-03
28-Apr-03
Payment Date Submitted (Tbl2)
01-May-03
30-Apr-03
28-Apr-03
25-Apr-03
21-Apr-03
01-May-02
And this is the results from the union query (Query1)
Code:
Payment Date Submitted
05/01/02
04/21/03
04/25/03
04/28/03
04/29/03
04/30/03
05/01/03
05/02/03
Here is the SQL of my union query:
Code:
SELECT [Tbl1].[Payment Date Submitted]
FROM [Tbl1]
GROUP BY [Tbl1].[Payment Date Submitted]
HAVING ((([Tbl1].[Payment Date Submitted]) Is Not Null))
ORDER BY [Tbl1].[Payment Date Submitted] DESC
UNION SELECT [Tbl2].[Payment Date Submitted]
FROM [Tbl2]
GROUP BY [Tbl2].[Payment Date Submitted];
Is there a way that I can have the results of Query1 in DECENDING order as I asked for in My SQL statement?