Importing from Excel to Access

  • For some reason, I'm getting an error on my Employee Table. Its been easy for all my other tables except this one.

    Here is the list of data. I also changed my most picky fields, which i assumed were the boolean yes/no fields and date data types to text. I still had errors. I also changed all my required fields to not required. I don't know what else is the problem.

    I've been working on this for hours and I don't know what else to do. Putting in the departments as centers was no problem at all.  I do notice that it keeps converting my dates into whole numbers.  However, it still doesn't work when i remove the date attribute.

     

    Thanks

    FirstNameLastNameSSNCenterIDDepartmentIDHireDateEmployedHourly
    Paula J.Adams777681411/9/1994yesyes
    CarleneAdams77771016/1/2001yesyes
    Pauline Adams7778871/3/2006yesyes
    Frances M. Adams77798112/26/1996yesyes
    Arhtur E.Adams7780825/8/2001yesyes
    Janean W.Adams77818712/20/2004yesyes
    Stella RAdams77828106/10/1996yesyes
    Wanda M.Adams77838712/16/2004yesyes
    Kettrell L.Adams778481110/1/2003yesyes
    Katrina A.Adams778581111/20/1991yesyes
    WandaAdams77869182/4/2002yesyes
    Monica L.Adams77878155/3/2001yesyes
    ConnieAdams77888910/3/1994yesyes
    Gizelle M.Adams778982110/18/2004yesyes
    BridgettAdams7790871/2/1996yesyes
    Wilneke J.Adams77918710/17/2005yesyes
    Brenda M.Adams7792848/18/2003yesyes
    Brenda K.Adams7793848/1/2005yesyes
    Tamara O.Adams77948410/13/2004yesyes
    TamikaAdams7795176/13/2005yesyes
    Alvra R.Adams779682111/16/1989yesyes
    Shemeika L.Adams77974206/18/2003yesyes
    CynthiaAdams779881212/5/2005yesyes
    JohnnieAdams77998168/8/1988yesyes
    Nancy A.Adams780010712/28/1998yesyes
    Doris W.Adams7801893/7/2005yesyes
    Eva M.Adams7802373/1/2004yesyes
    William H.Adams78038172/9/2005yesyes
    JacquelineAdams780410910/27/1992yesyes
    Raquel J.Adams7805773/7/2005yesyes
    Tanya R.Adams7806775/20/2002yesyes
    SandraAdams7807777/21/2003yesyes
    Sheila D.Adams78085175/18/2004yesyes
    Valerie D.Adams78098110/4/1990yesyes
    FredericaAdams78108810/14/2002yesyes
    Voncile P.Adams78117126/3/1991yesyes
    Denise D.Adams7812798/20/2001yesyes
    Allison E.Adams7813777/16/1992yesyes
    Tracy L.Adams78146711/7/2005yesyes
    LydiaAdams781581511/17/1997yesyes
    Kimberly M.Adams78168121/23/1996yesyes
    ShandraAdams7817845/7/2001yesyes
    StephanieAdams78188129/4/2001yesyes
    Ashley L.Adams7819893/1/1998yesyes
    Sonya C.Adams7820811/15/2004yesyes
    Emma D.Adams78213710/26/2001yesyes
    TerrieAdams7822849/15/2003yesyes
    Laneeka G.Adams7823896/22/1998yesyes
    April L.Adams7824878/6/2001yesyes
    Jennifer S.Adams7825611/17/2006yesyes
    Tyra Y.Adams7826593/15/2004yesyes
    Rosia J.Adams78278810/5/1998yesyes
    Sharon E.Adams782881011/9/1998yesyes
    Mattie C.Adams7829716/9/1997yesyes
    Davida E.Adams78307710/16/2000yesyes
    Shandestria T.Adams7831216/1/2004yesyes
    Ron'Netta T.Adams783281210/20/2003yesyes
    CarassieAdams7833847/2/2001yesyes
    Lajuana D.Adams7834886/5/2000yesyes
    Rose W.Adams7835515/29/2001yesyes
    IiiRobert L.Adams7836839/2/1998yesyes
    Angela S.Adams78377711/5/2001yesyes
    Carla V.Adams78388127/9/2002yesyes
    Leona E.Adams78398123/2/1992yesyes
    BeverlyAdams78408812/29/1993yesyes
    Robert R.Adams78418211/6/2000yesyes
    Elmarie H.Adams78428410/3/1994yesyes
    Jacalyn A.Adams7843899/23/1996yesyes
    Kimberly L.Adams78441112/5/2005yesyes
    Mildred K.Adams7845772/19/2001yesyes
    UkawiaAdams78467179/17/2001yesyes
    EthelAdams78471711/13/2000yesyes
    Joi M.Adams7848218/30/2004yesyes
    Tommy E.Adams7849857/8/1985yesyes
    Jandee R.Adams785081612/6/2004yesyes
    Zatavia J.Adams78511177/21/2003yesyes
    Francine R.Adams7852776/2/2003yesyes
    MaryAdams785382110/21/1993yesyes
    CherylAdams7854347/2/2001yesyes
    CassandraAdams7855116/13/2005yesyes
    Buffy D.Adams78568211/22/2002yesyes
    JessicaAdams7857873/14/2006yesyes
    Sylvia L.Adams7858171/4/1999yesyes
    PatriciaAdams78598218/13/1996yesyes
    Lasonya M.Adams7860812/28/2005yesyes
    Cynthia V.Adams7861842/21/1991yesyes
    Lawrencine AAdams7862797/7/2003yesyes
    CharlettaAdams78638215/16/1989yesyes
    Suzette O.Adams7864871/3/2005yesyes
    CornellAdams7865531/22/2002yesyes
    CrystalAdams78666112/19/2005yesyes
    ChristineAdams78679152/4/2002yesyes
    PauletteAdams7868113/21/2005yesyes
    Latosha J.Adams7869173/7/2005yesyes
    Thelma K.Adams7870811/31/1989yesyes
    Valerie E.Adams7871895/29/2001yesyes
    Lesia M.Adams7872899/14/1998yesyes
    Ramona D.Adams78738128/18/2005yesyes
    Rikki R.Adams7874686/22/2004yesyes
    Nena L.Adams787581010/5/1998yesyes
    EricaAdams78768101/3/2006yesyes
    Nikki R.Adams7877886/22/2004yesyes
    ReneeAdams78787129/16/2002yesyes
    Minnie Y.Adams78799151/12/2004yesyes
    TarnitaAdams7880846/5/2000yesyes
    SharonAdams78818212/14/2006yesyes
    ValerieAdams7882347/14/1997yesyes
    Iesha M.Adams7883797/21/2003yesyes
    Sharon D.Adams7884848/18/2003yesyes
    VickiAdams7885688/18/2005yesyes
    Melissa H.Adams7886197/10/2000yesyes
    Kimberly RAdams78878176/4/2001yesyes
    LashannaAdams7888872/20/2006yesyes
    Marcel D.Adams78899188/16/2004yesyes
    Shantee N.Adams7890873/7/2005yesyes
    LagaileAdams789141111/17/2003yesyes
    Shantel M.Adams78927712/20/2004yesyes
    Torri L.Adams7893872/4/2002yesyes
    Carlie J.Adams7894676/6/2005yesyes
    JacintaAdams789582110/18/2005yesyes
    Barbara P.Adams78964203/1/1993yesyes
    Timaly M.Adams78978111/8/1999yesyes
    CatinaAdams7898856/15/2006yesyes
    Pamylagene S.Adams789910812/1/1994yesyes
    Stephanie L.Adams7900377/2/2001yesyes
    AlfredaAdams79011076/1/2001yesyes
    Leila-BatesAdams79021910/17/2005yesyes
    Latanya D.Adams79038112/6/2004yesyes
    Keoki M.Adams79049186/15/2000yesyes
    Ruby J.Adams79058711/15/1999yesyes
    Audrey C.Adams7906698/25/2003yesyes
    Irene B.Adams7907886/10/1996yesyes
    Annice R.Adams7908115/16/1991yesyes
    TomekaAdams79098911/14/2005yesyes
    ShirlaAdams7910847/5/1998yesyes
    LisaAdams7911798/26/1991yesyes
    WillideneAdams7912777/6/1998yesyes
    AthesiasAdams79131123/19/2001yesyes
    CynthiaAdams7914273/8/2004yesyes
    KatrinaAdams791582110/16/1992yesyes
    Iris R.Adams7916848/30/2004yesyes
    Taryn S.Adams7917899/9/1996yesyes
    Donna M.Adams79188157/20/1987yesyes
    JessicaAdams7919872/6/2006yesyes
    LatangulaAdams79204114/4/1994yesyes
    Sandra L.Adams7921862/24/2001yesyes
    Joyice W.Adams7922891/3/2005yesyes
    Katina A.Adams79238107/21/2003yesyes
    Latashia K.Adams7924851/25/1999yesyes
    KimberlyAdams79251712/3/2001yesyes
    Phyllis R.Adams7926858/17/1992yesyes
       
       

     

  • Ok, as an alternative, i simply created a new DB using the attribute headers for the column names. This worked and i was able to change the datatype as before.  However,

    Now I can't enforce Referential integrity!!!!!!!!!!!!!!!It says: "Relationship must be on the same number of fields with the same datatypes."The fields FK id numbers are the same and the datatype is set to number while the PK number is autonumber.
    So this way, the info is in the DB but i can't connect the Department and Center tables.
  • Is the data type Long Integer? AutoNumber is always a Long Integer field.

    Specifically, what kind of errors were you getting? Access should have automatically created an Errors table when you did the import.

    Have you tried using the Import/Export Wizard, and mapping the fields with more precision? There is an option at one point where you can choose the datatype to import to.

    Have you double- and triple-checked your data, to make sure there isn't one row with improper data (like a date field with 'TBD')?

  • Mr. Smith is correct.  The true anser to your question lies in the errors table that Access generates.  It will list line by line what the errors are.  It may be off by one row depending upon if your spreadsheet has a header row or not, but the error message will provide the answer.  Could be something as simple as a number with a space after it ('3 ', ie a text field with numeric entries) trying to convert to a numeric field in access.

    Hope this helps.

    Regards,
    Matt

  • Access is always very picky on imports.  So much that it often ends up doing things to you rather than for you.  Check the data types on the columns on the spreadsheet to make sure they are matching the equivalent data types in the database. 

    If that fails, you can import the spreadsheet into a table where all the columns are definded as Text and large enough for the data.  Then run a query to move the data to your other table and do the data type conversions necessary.  When you're feeling really fancy, you can run a series of quieries in a macro to validate the data before copying it to your production tables.

  • Thanks guys! One problem i solved by putting the info in by hand. the other problem i solved by restarting the computer because of virtual memory problem. After that and maybe a change, I had no other problems.  Wierd how everything works better after you reboot.

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply