Results 1 to 6 of 6
  1. #1
    jpvonhemel is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    39

    Is it possible to format a Date/Time field to separate Date and Time Fields on Import

    I can run the format function wherever I use my Date/Time field, but I can see a benefit in splitting it to date and time fields on import. Is the possible?

    Thanks



    Jerold

  2. #2
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142
    You can just split them in a query easy enough. But why would you store them separately?

  3. #3
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Jerold,

    As KD asked, can you give us a little more info re the Business involved and why there is a requirement for separate Date and Time.

  4. #4
    jpvonhemel is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    39
    I split them out in reports and thought it was easier to deal with them one time time on import vs using format() everywhere I need a date. Sounds like it is not possible to split them out on import.

    Thanks,

    Jerold

  5. #5
    JSR is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2018
    Location
    Reno, NV
    Posts
    41
    Not on import. But you can run an update query after import to populate two fields, date only and time only.

  6. #6
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    depends how you are importing - if you are linking to a source file and using a query to append to your table, you can do it in the query. However I agree with others, what is the benefit? You can still display the separate components in a report. By splitting you are doubling up on the fields required, made indexing (if used) larger and more complex, potentially made criteria and sorting more difficult to implement

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

Similar Threads

  1. Replies: 6
    Last Post: 04-19-2016, 03:58 PM
  2. Replies: 3
    Last Post: 08-20-2014, 01:47 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: 1
    Last Post: 03-13-2014, 07:23 PM
  5. Replies: 1
    Last Post: 08-07-2011, 07:58 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