Results 1 to 3 of 3
  1. #1
    drunkenneo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    199

    Date Format Different in same column

    I have a table having column as date, format as mm/dd/yyyy and i update the column as now() using VBA.



    However some places the date is in mm/dd/yyyy and in some mm/dd/yyyy nn:mm:ss are appearing which is making the filtering of the data ambuige.

    Please Help.


    Happy New Year!!!!

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    Try using Date() instead of Now()

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Midnight will show as mm/dd/yyyy because the time part is 0:0:0. A date value is actually stored as a double number. The decimal part is the time. So the decimal for midnight is 0 and Access does not display 0 decimal.

    As amrut says, if you don't want time parts then use Date().
    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. listbox column head format backcolor
    By masoud_sedighy in forum Programming
    Replies: 3
    Last Post: 07-31-2013, 07:44 PM
  2. Replies: 4
    Last Post: 03-12-2013, 06:49 PM
  3. Replies: 5
    Last Post: 04-18-2012, 10:54 AM
  4. Replies: 20
    Last Post: 02-14-2011, 10:55 AM
  5. Replies: 1
    Last Post: 04-15-2010, 02:07 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