I have a report. I set it so that it opens a form to select the dates, such as 01/01/06 - 12/31/06 and that works fine. But, if I select 01/01/05 - 12/31/05 or 01/01/05 - 12/31/05 I get "This expression is typed incorrectly, or it is too complex to be evaluated. For example, a numeric expression may contain too many complicated elements. Try simplifying the expression by assigning parts of th eexpression to variables." My response is HUH.
When I run the query using 01/01/05 - 12/31/06 it works fine. I thought maybe it was because I was sorting on[TermDate], so I changed it to sort on name. Same problem.
I have another report that work similarly..using a form to select the dates and it works fine. I tried comparing them to find what is different and can't figure it out.
In the query for the report that works I am using
"Between [Forms]![frmSelectDates]![txtStartDate] And [Forms]![frmSelectDates]![txtEndDate]"
In the query for the report that is not working properly I am using
"Between [Forms]![frmSelectDatesExit]![txtStartDate] And [Forms]![frmSelectDatesExit]![txtEndDate]"
Hope this makes sense and someone can help me with this.
When I run the query using 01/01/05 - 12/31/06 it works fine. I thought maybe it was because I was sorting on[TermDate], so I changed it to sort on name. Same problem.
I have another report that work similarly..using a form to select the dates and it works fine. I tried comparing them to find what is different and can't figure it out.
In the query for the report that works I am using
"Between [Forms]![frmSelectDates]![txtStartDate] And [Forms]![frmSelectDates]![txtEndDate]"
In the query for the report that is not working properly I am using
"Between [Forms]![frmSelectDatesExit]![txtStartDate] And [Forms]![frmSelectDatesExit]![txtEndDate]"
Hope this makes sense and someone can help me with this.