Dear Friends
I am working on a project in VB.Net. I am using MS Access as database.
I am having a serious problem while searching the records between two dates.
When I Search the records between two dates it does not give me the complete records but It Missed some of the dates between the given dates.
The Columns in MS Access in which I have stored the dates, is also in date format.
The Dates in MS Access are in "M/d/yyyy" Format.
I have used two DateTimePicker with the name of dtpFrom and dtpTo.
I have used the following sql Query to search between these two dates.
"Select stdnames from tblStudents where AdmDate >= '" & format((Cdate(dtpFrom.value)),"M/d/yyyy") & "' and AdmDate <= '" & format((Cdate(dtpTo.value)),"M/d/yyyy") & "'"
Using This query, I got the result but it missed some of the dates. So, I wan to get all the dates between these two given dates. So, Is there any mechanism that can give me the precise dates between the given dates without missing any of the date.
Waiting for response.