Results 1 to 5 of 5
  1. #1
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453

    spreadsheet import

    Hi



    importing a spread sheet and have a column labelled

    Date of Baptism

    the entries are in the format 09-oct and 26-Nov ( have no idea why)

    If I import them into access the field is shown as 42286

    so I went back into excel and made sure the cell format was text

    When I do that in the excel spreadsheet the value changes to 42286

    What's the best way to approach this ?


    The field properties in the database are text I seem unable to find out the format of the excell cell

    thanks
    Ian

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    date datatypes are numeric

    42286 represents the day and that is how it is stored in access - just format the field as a date - it is 9th October 2015

    if you see something like 42286.23456, the bit after the decimal point represents the time expressed a time in number of seconds divided by the number of seconds in a day (86400)

    format properties are not exported/imported - only values are, when you see a date 'successfully imported as a date' it is still a number - just been formatted correctly

  3. #3
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453
    Hi

    thanks for the assist

    problem is that the year is not 2015 could be any year from 1837 on so I wanted to import it into access as it was shown in the spreadsheet

    ie 09-Oct


    Off to do some thinking

    cheers

    Ian

  4. #4
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    as it was shown in the spreadsheet

    ie 09-Oct

    so in access, format the date as dd-mmm

  5. #5
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453
    muchly thanks - that did it

    Ian

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

Similar Threads

  1. Import Spreadsheet and add other info to same record
    By kagoodwin13 in forum Programming
    Replies: 5
    Last Post: 07-12-2013, 12:57 PM
  2. Errors during import of spreadsheet
    By crowegreg in forum Import/Export Data
    Replies: 9
    Last Post: 07-18-2012, 07:10 PM
  3. import spreadsheet
    By slimjen in forum Access
    Replies: 1
    Last Post: 09-21-2011, 09:06 AM
  4. import excel spreadsheet though outlook
    By bopsgtir in forum Import/Export Data
    Replies: 0
    Last Post: 03-18-2011, 09:07 AM
  5. Import 1 spreadsheet into two tables
    By Matthieu in forum Import/Export Data
    Replies: 4
    Last Post: 02-03-2010, 08:19 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