S
Suzanne Wyatt
Ok You all have been a great help in the past. Challenge.
I have a query that calculates dates at 1 month, 3 months 6 months, 1 year and 2 years using the dateAdd function based on Discharge Date. Can I build a union query to join these fields into one column and if so how, and if not, why?
What I want is to be able to find Intervals of a specific date.
Example: Jan 3, 2004, generated on 1 month, 3 month, 6 month, 1 year and 2 year fields. I want to retrieve all Jan 3 2004, from each field as one group Interval.
Current query is based on Client table's discharge date:
Here is the query:
SELECT tblClient.DischargeDate, DateAdd("m",1,[DischargeDate]) AS [1month Interval], DateAdd("m",3,[DischargeDate]) AS [3month Interval], DateAdd("m",6,[DischargeDate]) AS [6month Interval], DateAdd("yyyy",1,[DischargeDate]) AS [1year Interval], DateAdd("yyyy",2,[DischargeDate]) AS [2year Interval]
FROM tblClient;
How would I retrieve these?
Discharge date:varies. Date to retrieve at 1,3,6 months and 1 and 2 years Current Date
Display as one group current date with those in 1 month column first, then 3 month column, then 6 month column, then 1 year, etc.
Can it be done?
I have a query that calculates dates at 1 month, 3 months 6 months, 1 year and 2 years using the dateAdd function based on Discharge Date. Can I build a union query to join these fields into one column and if so how, and if not, why?
What I want is to be able to find Intervals of a specific date.
Example: Jan 3, 2004, generated on 1 month, 3 month, 6 month, 1 year and 2 year fields. I want to retrieve all Jan 3 2004, from each field as one group Interval.
Current query is based on Client table's discharge date:
Here is the query:
SELECT tblClient.DischargeDate, DateAdd("m",1,[DischargeDate]) AS [1month Interval], DateAdd("m",3,[DischargeDate]) AS [3month Interval], DateAdd("m",6,[DischargeDate]) AS [6month Interval], DateAdd("yyyy",1,[DischargeDate]) AS [1year Interval], DateAdd("yyyy",2,[DischargeDate]) AS [2year Interval]
FROM tblClient;
How would I retrieve these?
Discharge date:varies. Date to retrieve at 1,3,6 months and 1 and 2 years Current Date
Display as one group current date with those in 1 month column first, then 3 month column, then 6 month column, then 1 year, etc.
Can it be done?