I'm attempting to run a query based on criteria in unbound fields, for some reason the query does not even pick up the values.
The fields are [Forms]![frmStatus_Report]![txtFrom] and [txtTo], both are Formatted as Short Date.
The relating field in the query is [tblCase]![CheckDate]
I want the query to return all records where CheckDate is >=[txtFrom] and <=[txtDate], so I currently have:
Field: CheckDate
Table: tblCase
Total: Where
Criteria: >=[Forms]![frmStatus_Report]![txtFrom] And <=[Forms]![frmStatus_Report]![txtTo]
but it returns no records (there are definately records between the dates I've entered.
Even if I create an expression to just return the dates nothing appears, if I remove the ShortDate format then the values of the fields are returned but obviously ShortDate is a requirement.
Can anyone shed some light?
Cheers.
The fields are [Forms]![frmStatus_Report]![txtFrom] and [txtTo], both are Formatted as Short Date.
The relating field in the query is [tblCase]![CheckDate]
I want the query to return all records where CheckDate is >=[txtFrom] and <=[txtDate], so I currently have:
Field: CheckDate
Table: tblCase
Total: Where
Criteria: >=[Forms]![frmStatus_Report]![txtFrom] And <=[Forms]![frmStatus_Report]![txtTo]
but it returns no records (there are definately records between the dates I've entered.
Even if I create an expression to just return the dates nothing appears, if I remove the ShortDate format then the values of the fields are returned but obviously ShortDate is a requirement.
Can anyone shed some light?
Cheers.