R
Rick Oberlee via AccessMonster.com
Greetings. I am setting up a query where a user will enter a date and a
recordset will return based on a dateadd function.
The parameter is Between DateAdd("m",[Cycle]*-1,[Date]) AND DateAdd("m",(
[Cycle]-1)*-1,[Date])
Date is the user-entered parameter
Cycle is the number of months stored in a table.
The field being selected is a Date type.
When run, the query returns a message givng me a data type mismatch error.
I have tried the CDate function to no avail. If I put the components of
the criteria in a query field, they display/work perfectly.
Any and all suggestions are MOST appreciated!!
Best,
Rick
recordset will return based on a dateadd function.
The parameter is Between DateAdd("m",[Cycle]*-1,[Date]) AND DateAdd("m",(
[Cycle]-1)*-1,[Date])
Date is the user-entered parameter
Cycle is the number of months stored in a table.
The field being selected is a Date type.
When run, the query returns a message givng me a data type mismatch error.
I have tried the CDate function to no avail. If I put the components of
the criteria in a query field, they display/work perfectly.
Any and all suggestions are MOST appreciated!!
Best,
Rick