J
Jody
I recently ran up against something I hadn't run up against before (though
I'm sure many have). I needed to build a report to show totals of items for
logging how many of what item was logged per date range. Since there are
multiple columns with item numbers and quantities I first made a Union Query
to compile the data. I then built my select query to perform the aggregate
calculations (group by item and show total quantities).
The date in this particular database is set to General Date so they can
capture time as well as day. So, when attempting to filter the data as I
normally would with a simple Between [StartDate] And [EndDAte] I noticed that
there was large chunks of data missing, and I couldn't filter down to one day
(i.e. the StartDate and EndDate having the same date) because it would not
return any data. The catch is the time stamp. Although this may not be the
absolute best solution, this is what I did to pull the data accuratly:
In the Date criteria:
Between [Beginning Date] & " 00:00:00 AM" And [End Date] & " 11:59:59 PM"
I hope this is at least a little helpful for anyone experiencing the same
issue.
I'm sure many have). I needed to build a report to show totals of items for
logging how many of what item was logged per date range. Since there are
multiple columns with item numbers and quantities I first made a Union Query
to compile the data. I then built my select query to perform the aggregate
calculations (group by item and show total quantities).
The date in this particular database is set to General Date so they can
capture time as well as day. So, when attempting to filter the data as I
normally would with a simple Between [StartDate] And [EndDAte] I noticed that
there was large chunks of data missing, and I couldn't filter down to one day
(i.e. the StartDate and EndDate having the same date) because it would not
return any data. The catch is the time stamp. Although this may not be the
absolute best solution, this is what I did to pull the data accuratly:
In the Date criteria:
Between [Beginning Date] & " 00:00:00 AM" And [End Date] & " 11:59:59 PM"
I hope this is at least a little helpful for anyone experiencing the same
issue.