SELECT Table1.ID, Table1.Date, Table1.Days, [date]+[days] AS retest
FROM Table1
WHERE (((Table1.Date) Between [first date] And [End date]));
If what you wanted is to return the retest dates, the criteria of your query is incorrect. It should be
WHERE (((Table1.Date +Table1.Days) Between [first date] And [End date]))
So even if you have declared the data type of the parameters, it still will not work.
I have attached a sample database in Access 2000 format (I don't have Access 2007.) You can open the form, click on the buttons to run your query (which should produce no results or incorrect results) as well as the query with parameters declaration (which should return the correct results.) The query with parameters declaration is:-
PARAMETERS [first date] DateTime, [End date] DateTime;
SELECT Table1.ID, Table1.Date, Table1.Days, [date]+[days] AS retest
FROM Table1
WHERE (((Table1.Date+Table1.Days) Between [first date] And [End date]));
You can also enter a first date and an end date in the two text boxes on the form and click on the button to run the query "Query based on Form". It should return the correct records (even though no parameters declaration has been made in that query) because the two text boxes on the form for the input dates have been formatted as Short Date.
If you remove the Short Date format from the two text boxes, the query will return incorrect results or no results.
So you can see that to make the query work, you have to tell Access that the two parameters are of Date/Time data type. You can do it by means of parameters declaration in the query or by formatting in the input text boxes on a form.
Note:
Parameters declaration in query Design View is somewhat hidden. You have to choose menu Query, Parameters...
.