B
Bob
Hi I use the following code to pull off a daily report. Entering i.e.
txtStartDate 14/12/05 txtEndDate 14/12/05 it returns no data found when
files have been closed on that date.
yet if you enter txtStartDate 14/12/05 txtEndDate 15/12/05 it returns
the closed files for 14/12/05 the same code works on other daily reports
that I use by entering the same dates
i.e. 14/12/05 & 14/12/05 where am I going wrong? I now have 2 reports doing
the same thing.
If I use Between [Start Date]And[Finish Date] in the query I get
the same results
Dim strWhere As String
strWhere = "[FileClosedDate] between #" & Format(Me.txtStartDate,
"dd-mmm-yy") & "# AND #" & Format(Me.txtEndDate, "dd-mmm-yy") & "#"
stDocName1 = "rptFileClosed"
DoCmd.OpenReport stDocName1, acPreview, , strWhere
DoCmd.RunCommand acCmdZoom100
Any idea's or help would be very much appreciated.
Bob
txtStartDate 14/12/05 txtEndDate 14/12/05 it returns no data found when
files have been closed on that date.
yet if you enter txtStartDate 14/12/05 txtEndDate 15/12/05 it returns
the closed files for 14/12/05 the same code works on other daily reports
that I use by entering the same dates
i.e. 14/12/05 & 14/12/05 where am I going wrong? I now have 2 reports doing
the same thing.
If I use Between [Start Date]And[Finish Date] in the query I get
the same results
Dim strWhere As String
strWhere = "[FileClosedDate] between #" & Format(Me.txtStartDate,
"dd-mmm-yy") & "# AND #" & Format(Me.txtEndDate, "dd-mmm-yy") & "#"
stDocName1 = "rptFileClosed"
DoCmd.OpenReport stDocName1, acPreview, , strWhere
DoCmd.RunCommand acCmdZoom100
Any idea's or help would be very much appreciated.
Bob