Rather than altering the table structure you could try using CDate to convert the field values from string to dates but ideally it should be a Date field.
No, you wouldn't want to do that.
Between is inclusive (think greater than or equal to, less than or equal to)
So if you did it that way, it would also pick up February 1.
The only thing to consider is if you have a time component to your dates, then you probably want to use something like:
Code:
>= #1/1/2016# and < #2/1/2016#
That will pick up everything from midnight 1/1/2016 up to 1/31/2016 11:59:59 PM.
Otherwise, you would miss anything that happened on 1/31/2016 after midnight.
(Leaving off the time component is a value of 0:00:00 AM, or Midnight).
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.