If you're inputting dates in the form 01/05/2016, why use DateValue? That's for returning a date when you supply something like "January 5, 2016". I've used parameterized queries MANY times and will continue to do so - especially if I have to pass a parameter from a form in VBA. My 'bias' probably comes from my work environment - everybody instinctively entered dates that worked, but if they made an error it was obvious and easily rectified by them.
Your issue is probably that 1/2/2016 (as you posted) is not recognized as a date, whereas 01/02/2016 would (should?) be. Certainly, I would not expect 1 divided by 2 (1/2) to be recognized as a date.
I'd be inclined to write >=DateValue([End Date])-6 And <DateValue([End Date])+1 as
Between ([Enter End Date As mm/dd/yyy]-6) And ([Enter End Date As mm/dd/yyyy]+1) if I wanted to supply instructions.
I'm not saying my way is better - just 'good enough' for my purpose, but some day I may make the switch!
Last edited by Micron; 01-02-2016 at 06:15 PM.
Reason: comment wrt division
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.