I have a table that has dtOpenDateTime and dtClosedDateTime fields. These fields contain dates and times the record was opened and closed in a format such as, 2/27/2010 11:34:15 AM. What I am trying to do is get a WHERE clause in a query that will pull records that have the same open and closed date, ignoring the time.
I would think this is sime syntax, but I can't figure it out.
"Select Count(tblDailyTickets.txtCallNum) As intFCR, tblDailyTickets.txtOwnerID " & _
"FROM tblDailyTickets " & _
"WHERE dtOpenDateTime Between DateSerial(2010,Month(Date())-1,1) And DateSerial(Year(Date()),Month(Date()),0)" & _
"AND tblDailyTickets.txtIncidentNum Is Null " & _
"AND CLAUSE TO COMPARE JUST THE DATES"
Can someone point me in the right direction?
Thanks
I would think this is sime syntax, but I can't figure it out.
"Select Count(tblDailyTickets.txtCallNum) As intFCR, tblDailyTickets.txtOwnerID " & _
"FROM tblDailyTickets " & _
"WHERE dtOpenDateTime Between DateSerial(2010,Month(Date())-1,1) And DateSerial(Year(Date()),Month(Date()),0)" & _
"AND tblDailyTickets.txtIncidentNum Is Null " & _
"AND CLAUSE TO COMPARE JUST THE DATES"
Can someone point me in the right direction?
Thanks