Larft
Technical User
- Dec 9, 2002
- 55
I've been through this before and was able to use the DateValue solution but now it's not working. I am trying to set up a simple (yeah right, no such thing in Access for this one) parameter query that returns records between two dates:
"Between [Beginning Date] And [Ending Date]" on a ShortDate date/time field.
Problem is the time component is included in the record when it is automatically generated by my form's AfterUpdate event and everything past the exact stroke of midnight on the end date is omitted since it's not "Between".
I've searched and tried several solutions, no luck, the DateValue value function has worked before but it's not doing it now. I can get it to strip the time from the date by creating a "DateOnly' expression in the query design and then add the parameter portion to the criteria section but it still misses the last date, I get the same result as I did without the added functions.
Anybody out there have any suggestions? This is a good one for a FAQ/Help topic to clearly describe the solution.
Thanks in advance!
"Between [Beginning Date] And [Ending Date]" on a ShortDate date/time field.
Problem is the time component is included in the record when it is automatically generated by my form's AfterUpdate event and everything past the exact stroke of midnight on the end date is omitted since it's not "Between".
I've searched and tried several solutions, no luck, the DateValue value function has worked before but it's not doing it now. I can get it to strip the time from the date by creating a "DateOnly' expression in the query design and then add the parameter portion to the criteria section but it still misses the last date, I get the same result as I did without the added functions.
Anybody out there have any suggestions? This is a good one for a FAQ/Help topic to clearly describe the solution.
Thanks in advance!