Results 1 to 4 of 4
  1. #1
    mulchgirl is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    2

    Changing date to date with time

    I currently have a report generating a date field that lists date only. I changed the format for the data type for the field in the table to General Date and tried changing the input mask for the field in the design view of the report to show the time, but it is still only printing the date. Any help would be great!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    It is printing only the date for the previously existing records? That is because the time is 0. Access doesn't show 0 time unless you use Format function.

    Format(#1/1/2012#,"m/d/yyyy h:nn:ss AM/PM")

    will use midnight as default time and show as
    1/1/2012 12:00:00 AM
    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.

  3. #3
    mulchgirl is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    2
    I'm not the greatest at this, so....do where do I enter the above string - as the input mask under the General tab for the field in the table, or do I leave that blank and put the string somewhere else?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    This has nothing to do with input mask which controls how data is saved.

    This has to do with how data is displayed.

    Can try the Format property of textbox. The only choice that comes close is GeneralDate and it still doesn't seem to show time when it is 0.

    Use the Format function in a query or unbound textbox ControlSource to force display of time parts even when time was not saved as part of the data. This is creating a field with an expression and that field is not editable.
    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. Changing the date from Excel to Access
    By Philosophaie in forum Access
    Replies: 7
    Last Post: 08-21-2012, 07:54 PM
  2. Changing the century part of the date.
    By Chet in forum Queries
    Replies: 2
    Last Post: 05-13-2012, 08:27 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: 6
    Last Post: 01-04-2011, 05:43 PM
  5. Changing a date to the current year
    By fdnyfish in forum Access
    Replies: 1
    Last Post: 03-01-2008, 08:34 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