I am having trouble with the query producing the correct Dates.
I have the Log Date Field and for the criteria I have:
Between Nz([Forms]![frmDate]![txtStart],[LogDate]) And Nz([Forms]![frmDate]![txtEnd],[LogDate])
When I run the query it asks for Forms!FrmDate!txtStart I enter 10/1/05
It then asks for Forms!FrmDate!txtEnd I enter 10/31/05
The results produced are wrong. It shows me records fro 10/1/05 to 10/29/05 it is not including 10/31/05;
Also for Start if I enter 10/26/05 and End I enter 10/26/05 It gives me 0 records when there are 3 records for that date.
Attached is the db. I'd really appreciate it if someone can take a look at it.
I have the Log Date Field and for the criteria I have:
Between Nz([Forms]![frmDate]![txtStart],[LogDate]) And Nz([Forms]![frmDate]![txtEnd],[LogDate])
When I run the query it asks for Forms!FrmDate!txtStart I enter 10/1/05
It then asks for Forms!FrmDate!txtEnd I enter 10/31/05
The results produced are wrong. It shows me records fro 10/1/05 to 10/29/05 it is not including 10/31/05;
Also for Start if I enter 10/26/05 and End I enter 10/26/05 It gives me 0 records when there are 3 records for that date.
Attached is the db. I'd really appreciate it if someone can take a look at it.