Polariz666
Programmer
Hi all.
I found a problem with my code and realised that the SQL statement...
rs.Open "SELECT Name, S, Time, Tid FROM TstArchive WHERE [Time] BETWEEN '" & passDateToQueryField.Text & "%' AND '" & passDateToQueryField2.Text & "%' ORDER BY Name ASC", db, adLockOptimistic
...does not return/include the data for the last date in the range. I read somewhere that some databases exhibit this behaviour and others choose to include the data. Is there any way around this without adding a day onto the final date?
Much appreciate guys.
Mike.
I found a problem with my code and realised that the SQL statement...
rs.Open "SELECT Name, S, Time, Tid FROM TstArchive WHERE [Time] BETWEEN '" & passDateToQueryField.Text & "%' AND '" & passDateToQueryField2.Text & "%' ORDER BY Name ASC", db, adLockOptimistic
...does not return/include the data for the last date in the range. I read somewhere that some databases exhibit this behaviour and others choose to include the data. Is there any way around this without adding a day onto the final date?
Much appreciate guys.
Mike.