sathyaganapathi
Board Regular
- Joined
- Apr 29, 2021
- Messages
- 81
- Office Version
- 2016
- Platform
- Windows
Hello,
I am using below query to get data from access table between two dates. But, always it is displaying dates one less than the eDate.
sDate - Start Date
eDate - end date
for example If I select date 7/25/2021 as sDate and 7/28/2021 as eDate, data is displayed from 25th to 27th only. Data is available in database for 28th too. But it is not displayed. If both the dates are same, no data is displayed.
Please help.
I am using below query to get data from access table between two dates. But, always it is displaying dates one less than the eDate.
sDate - Start Date
eDate - end date
VBA Code:
If Me.ComboBox1.Value = "ALL" And sDate <> "" And Me.ComboBox1.Value = "ALL" And eDate <> "" Then
qry = "SELECT * FROM TBL_PlabInput where Process_DateTime BETWEEN #" & sDate & "# AND #" & eDate & "#"
End If
for example If I select date 7/25/2021 as sDate and 7/28/2021 as eDate, data is displayed from 25th to 27th only. Data is available in database for 28th too. But it is not displayed. If both the dates are same, no data is displayed.
Please help.