Here is a little oddity I hadn’t run into before. I’ve attached a graphic showing the Calender Control and the Date/Time Picker. I’ve used them interchangeably in one of my dbs, because on some forms there wasn’t room to display a full calender.
However, they don’t appear to be identical in action.
When I run a query, selecting records between the date range specified by the controls, using the following criteria:
Between [Forms]![formname]![StartDateControl] And [Forms]![formname]![EndDateControl]
Querys using the Calender control return all the desired records. However, when the Date/Time Picker is used – records that are equal to the start date are ignored. But records equal to the end date are returned.
I’ve amended my query criteria as follows:
Between ([Forms]![CostVSBillingReports]![StartDate]-1) And [Forms]![CostVSBillingReports]![EndDate]
And this returns all records in the range.