S
SimonMurphy
What I am trying to acheive:
I have a date (InspDate) in a table. I want to write a query that selects
out records where the InspDate+3 years fall into a user defined start/end
date period.
What I have attempted so far:
1. I have written a query with a calculated field NextInsp:
DateAdd("yyyy",3,[InspDate]).
2. I have written a second query that uses the first query as its source and
placed NextInsp on the 2nd query. Then specified the selection criteria as
"Between [Enter Start Date:] And [Enter End date:]"
3. When I run the 2nd query and enter the start/end dates I get no records
selected although I have 1 record setup to fall between the start/end dates.
4. As a test I have removed the BETWEEN selection and the query returns all
the records from which I can see the InspDate and NextInsp fields with the
correct data.
Am I missing something here? I thought I was being pretty logical in my
thought processes.
I have a date (InspDate) in a table. I want to write a query that selects
out records where the InspDate+3 years fall into a user defined start/end
date period.
What I have attempted so far:
1. I have written a query with a calculated field NextInsp:
DateAdd("yyyy",3,[InspDate]).
2. I have written a second query that uses the first query as its source and
placed NextInsp on the 2nd query. Then specified the selection criteria as
"Between [Enter Start Date:] And [Enter End date:]"
3. When I run the 2nd query and enter the start/end dates I get no records
selected although I have 1 record setup to fall between the start/end dates.
4. As a test I have removed the BETWEEN selection and the query returns all
the records from which I can see the InspDate and NextInsp fields with the
correct data.
Am I missing something here? I thought I was being pretty logical in my
thought processes.