Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access_asp thread: Re: Filter Recordset Based on Date Greater Than Another Date


Message #1 by "Phillip Ruminski" <phillipruminski@e...> on Thu, 27 Jun 2002 16:01:35
Hello;
I'm getting the same error message as Eric but I need to filter for 
specific records in a recordset.  A SELECT query would be inefficient for 
my needs.  Here's my filter and the problem is with the date comparison in 
the last AND.

   rst2Clone.Filter = "EmployeeID = " & strEmployeeID _
                        & " AND RecordDate = " & strRecordDate _
                        & " AND TeamID = " & strTeamID _
                        & " AND [DispatchTime] = " & datDispatch

The data type for both DispatchTime and datDispatch is Date/Time and the 
actual date in both variable is "6/8/2002 11:32:25 AM" (without the 
quotes, of course).  Can anybody help.  Thanks.
Phillip

  Return to Index