I need to pull records from a table that are entered on a single date, supplied by the user, for a report. The data is stored in a SQL Server backend as Date/Time.
I have tried adding a filter to the report that states:
[tt] DateValue(InspEnd) LIKE DateValue([Date:])[/tt]
When I run it with this filter, I get an error that states:
[tt]The expression is typed incorrectly, or 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 the expression to variables.[/tt]
If I take out the second DateValue function so:
[tt]DateValue(InspEnd) LIKE [Date:][/tt]
I still get the same error. Likewise if I substitute "=" for the "LIKE". If I just leave it with
[tt]InspEnd = [Date:][/tt]
it pulls nothing even for confirmed dates with records attached to them; I assume this is because InspEnd holds not just the date, but also a time.
How do I get it to look at only the date in InspEnd and compare it to [Date:] (as supplied by the user)?
Cheryl dc Kern
I have tried adding a filter to the report that states:
[tt] DateValue(InspEnd) LIKE DateValue([Date:])[/tt]
When I run it with this filter, I get an error that states:
[tt]The expression is typed incorrectly, or 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 the expression to variables.[/tt]
If I take out the second DateValue function so:
[tt]DateValue(InspEnd) LIKE [Date:][/tt]
I still get the same error. Likewise if I substitute "=" for the "LIKE". If I just leave it with
[tt]InspEnd = [Date:][/tt]
it pulls nothing even for confirmed dates with records attached to them; I assume this is because InspEnd holds not just the date, but also a time.
How do I get it to look at only the date in InspEnd and compare it to [Date:] (as supplied by the user)?
Cheryl dc Kern