or download this
$SQL = "SELECT Documents, Fronts, FrontsBlank, FrontsRescanned, Fr
+ontsDeleted,
Rears, RearsBlank, RearsRescanned, RearsDeleted, ProcessSt
+artDate FROM tblXVCSBatch WHERE
ScanStationID = $scannerID AND
ProcessStartDate >= $DateQuote $dispStartDate $DateQuote A
+ND
ProcessStartDate <= $DateQuote $dispEndDate $DateQuote";