1: 2: 3: 4: 5:
SELECT * FROM TBLReadings WHERE AccountNumber = '" & acct & "' AND DeviceId = '0' AND DeviceNo = '" & device & "' and DateReceived between convert(datetime, '" & startdate & "',1) and convert(datetime, '" & enddate & "',1) ORDER BY DateReceived DESC