Results 1 to 4 of 4
  1. #1
    behnam is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    72

    How to create fields in table which splits date and time from another field


    Hi all, I have a field called outage Date/Time, with the following format 7/10/2014 10:29:28 AM. Can i add two fields to the table, one which automatically copies the date of the field and one which holds the time. How can i do this, thanks.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    I would store it in a single field, as you have it. You can use the DateValue() and TimeValue() functions to peel out each portion as needed in the db. I suppose you could use the new calculated field in 2010; I've never tried it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    behnam is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    72
    I used the calculated field option and figured it out, thanks!!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. 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
  2. Replies: 1
    Last Post: 03-13-2014, 07:23 PM
  3. Replies: 5
    Last Post: 12-12-2013, 12:14 PM
  4. create and last modify date & time for record
    By msasan1367 in forum Access
    Replies: 5
    Last Post: 04-04-2013, 01:54 AM
  5. Replies: 3
    Last Post: 08-05-2011, 08:13 PM

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