Odd one here, I have a table with a date and time stored as a General Date.
I am importing data from text files where old ones have just a date so it comes in as 01/01/2018 00:00 and new ones with a time so it is imported as 01/01/2018 15:20.
If I want to query a date range of old data I have to use Between Date1 AND Date2 to get all data from correct days, if I want to query new data (including time) I have to use between Date1 AND (Date2 +1) to get all data from correct days.
How do I get data from correct days without it mattering whether it is old or new data?
I am importing data from text files where old ones have just a date so it comes in as 01/01/2018 00:00 and new ones with a time so it is imported as 01/01/2018 15:20.
If I want to query a date range of old data I have to use Between Date1 AND Date2 to get all data from correct days, if I want to query new data (including time) I have to use between Date1 AND (Date2 +1) to get all data from correct days.
How do I get data from correct days without it mattering whether it is old or new data?