AOB
Registered User.
- Local time
- Today, 07:26
- Joined
- Sep 26, 2012
- Messages
- 615
Hi guys,
Was investigating an issue this morning and came across some very odd behaviour when filtering a table.
The table has a number of date fields but concerned with one in particular (ImportDate)
When I open the table in datasheet view and filter on ImportDate (i.e. scroll down the list of filter options and tick "16-Sep-2015"), I only get one record. Thought this was odd as typically there would be north of a hundred records added each day.
If I clear the filter and reapply it by using Date Filters > Equals... > "ImportDate is equal to" and select today's date using the date picker, I get 81 records. Huh??...
If I clear the filter again, and filter on another date field (ValueDate) being equal to yesterday's date (typically, ImportDate lags ValueDate by one day), I get 111 records - all of which just happen to have an ImportDate of 16-Sep-2015? What the hell???
There are no other filters being applied in each scenario - so how many records do I have with an ImportDate of 16-Sep-2015? And why is the filter acting so inconsistently?
I then tried to get the subset using a very simple query :
This returns 81 records (so where are the other 30?)
I then tried :
This returns 115 records. 115?? So 4 more than when I simply filtered on the ValueDate field directly on the table in Datasheet view. Where were they in the filtered version?
Anybody have any idea what is going on here??
Thanks
AOB
Was investigating an issue this morning and came across some very odd behaviour when filtering a table.
The table has a number of date fields but concerned with one in particular (ImportDate)
When I open the table in datasheet view and filter on ImportDate (i.e. scroll down the list of filter options and tick "16-Sep-2015"), I only get one record. Thought this was odd as typically there would be north of a hundred records added each day.
If I clear the filter and reapply it by using Date Filters > Equals... > "ImportDate is equal to" and select today's date using the date picker, I get 81 records. Huh??...
If I clear the filter again, and filter on another date field (ValueDate) being equal to yesterday's date (typically, ImportDate lags ValueDate by one day), I get 111 records - all of which just happen to have an ImportDate of 16-Sep-2015? What the hell???
There are no other filters being applied in each scenario - so how many records do I have with an ImportDate of 16-Sep-2015? And why is the filter acting so inconsistently?
I then tried to get the subset using a very simple query :
Code:
SELECT tblIssues.*
FROM tblIssues
WHERE tblIssues.ImportDate=#9/16/2015#
This returns 81 records (so where are the other 30?)
I then tried :
Code:
SELECT tblIssues.*
FROM tblIssues
WHERE tblIssues.ValueDate=#9/15/2015#
This returns 115 records. 115?? So 4 more than when I simply filtered on the ValueDate field directly on the table in Datasheet view. Where were they in the filtered version?
Anybody have any idea what is going on here??
Thanks
AOB