Results 1 to 2 of 2
  1. #1
    stenman is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2013
    Posts
    8

    Date without time

    Hello,


    I am looking for solution how to display date in a query. In my table I have field as Date\Time but I would like to leave out time in my query as:
    =#01.09.2013# this is giving me a "blank answer" so question is how to define that it should ignore the time in the field. Because if I enter:
    =#01.09.2013 13:00:00# one record is shown since the record is matching. How to define date without having to enter time as well, or is it not possible when choosing data type Date/Time?
    Many thanks in advance for your help.
    Br
    Anders

    I found solution in following post:
    https://www.accessforums.net/reports...eld-17595.html
    Last edited by stenman; 09-12-2013 at 03:11 AM. Reason: solved

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    Be aware that Format results in a string value, not a date. Depending on what you do with the value, might have to convert back to a date. Sometimes delimiting with # is sufficient, if not try wrapping in CDate() function.
    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: 4
    Last Post: 03-06-2013, 02:32 PM
  2. Breaking out the time from date/time
    By detaylor1242 in forum Programming
    Replies: 1
    Last Post: 02-19-2013, 08:10 PM
  3. Getting Just the Date part of Date/Time field
    By GaryElwood in forum Reports
    Replies: 7
    Last Post: 09-28-2011, 09:58 AM
  4. Replies: 12
    Last Post: 02-22-2011, 03:39 PM
  5. Replies: 6
    Last Post: 01-04-2011, 05:43 PM

Tags for this Thread

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