I've got a problem and I think i'm going to settle it with 3 queries... cue problem:
A set of dates in a column can be in a range of 6 months from today's date, to 5 years from today's date, dependent on what's in its previous criteria.
I would like to run a query that will look if the dates in that column are between 0 to >1 year of today's date. The next between 1 - 3 years, and the final between 3 - 5 years; I can do this with temporary queries I think, thus not clogging up my navigation bar.
I will then use a text box on a form to count the amount of records that the query has, but I'm also unsure on what to write as the statement for the DCount.
The items I'm interested in is the SQL for the text in the query, and also the data for the text box.
An e.g. for the query criteria: Between DateAdd("yyyy", 1, Date()) And ("yyyy", 3, Date()) - I can't write the brackets in the SQL, so how do I do it?
A set of dates in a column can be in a range of 6 months from today's date, to 5 years from today's date, dependent on what's in its previous criteria.
I would like to run a query that will look if the dates in that column are between 0 to >1 year of today's date. The next between 1 - 3 years, and the final between 3 - 5 years; I can do this with temporary queries I think, thus not clogging up my navigation bar.
I will then use a text box on a form to count the amount of records that the query has, but I'm also unsure on what to write as the statement for the DCount.
The items I'm interested in is the SQL for the text in the query, and also the data for the text box.
An e.g. for the query criteria: Between DateAdd("yyyy", 1, Date()) And ("yyyy", 3, Date()) - I can't write the brackets in the SQL, so how do I do it?