P
pdehner
I have a table - Reportsdue
with multiple fields such as reportname, fiscialyear, towhom,
also with
reportduedate1
reportduedate2
reportduedate3
reportduedate4
I need to create a query/report that allows the user to input a month
requested
Example: Reports due in the month of May (5)
so I began with a union query that I thought would rename each of the above
4 fields to duedate
then I tried to use that query in another query to get the rest of the
fields in the table.
I received a blank record when I ran the union query and it will not allow
me to query this query to get the information I want.
What am I doing wrong.
Any suggestions on where to look or help with code is appreicated!
SELECT [ReportDueDate1] as [DUEDATE]
FROM [Reportsduecomplete]WHERE [ReportDueDate1]
UNION
SELECT [ReportDueDate2] as [DUEDATE]
FROM [Reportsduecomplete]
UNION
SELECT [ReportDueDate3] as [DUEDATE]
FROM [Reportsduecomplete]
UNION SELECT [ReportDueDate4] as [DUEDATE]
FROM [Reportsduecomplete];
with multiple fields such as reportname, fiscialyear, towhom,
also with
reportduedate1
reportduedate2
reportduedate3
reportduedate4
I need to create a query/report that allows the user to input a month
requested
Example: Reports due in the month of May (5)
so I began with a union query that I thought would rename each of the above
4 fields to duedate
then I tried to use that query in another query to get the rest of the
fields in the table.
I received a blank record when I ran the union query and it will not allow
me to query this query to get the information I want.
What am I doing wrong.
Any suggestions on where to look or help with code is appreicated!
SELECT [ReportDueDate1] as [DUEDATE]
FROM [Reportsduecomplete]WHERE [ReportDueDate1]
UNION
SELECT [ReportDueDate2] as [DUEDATE]
FROM [Reportsduecomplete]
UNION
SELECT [ReportDueDate3] as [DUEDATE]
FROM [Reportsduecomplete]
UNION SELECT [ReportDueDate4] as [DUEDATE]
FROM [Reportsduecomplete];