the field type will only accept the date range criteria as a text format
the field type of what - the table? I guess you're saying the table field is text because you're trying to modify the whole expression in the table (which has to be text then) and use that?
Many ways you could handle this. A couple -
- a form with 2 textboxes that you pick dates from the built in calendar and add 11 hours and 59 minutes in code, or use < the date plus 1 day. The table field would have to be date type.
- build the date criteria and execute the query in code. I presume you're not using the same dates you've shown each time but I don't know what dates are needed
- have a start and end date fields in the table (date data type) and use either of the two above approaches
I don't see why you have the same expression in the table as well as the query. Basically, you can't use that table field as criteria because it's text.
BTW, date is a poor choice for any db object name - it is a reserved word.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.