Results 1 to 2 of 2
  1. #1
    bchi99 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    23

    date/time field giving me issues


    I'm simply trying to select records that have today's date. 3 records have today's date but the field is a date/time field. Shouldn't : Date() return all the records? here is the data inside the date/time field:

    11/4/2014 3:30:17 PM
    11/4/2014 3:30:20 PM
    11/4/2014 3:30:29 PM

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    No, because of the time component none of the records match Date().

    Calculate a field that eliminates the time component and apply filter to that constructed field.

    Or try this criteria:

    Between Date() And Date()+1
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 09-02-2014, 08:18 AM
  2. Replies: 6
    Last Post: 08-20-2014, 12:32 PM
  3. Subtracting a date/time field from a number to get date/time
    By Lifeseeker1019 in forum Programming
    Replies: 4
    Last Post: 03-28-2014, 12:59 PM
  4. Replies: 5
    Last Post: 03-19-2014, 02:31 PM
  5. Summing Time is giving me wrong totals.
    By Nuke1096 in forum Access
    Replies: 7
    Last Post: 06-13-2013, 11:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums