Results 1 to 4 of 4
  1. #1
    Access_Novice is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2013
    Posts
    265

    Importing Excel spreadsheet and appending it to an existing table

    Hello all,



    I have an existing table set up. I want to import an Excel spreadsheet (from a download) and append the data to an existing Access table. I do not have field names on it, and I want to import the data this way. When I import the data, Access displays a message saying that the data I have does not have valid field names and that Access will assign them for me. The first row of data is used as field names. Then there is a screen where you can mark a checkbox with "First Row Contains Column Headings." But when I get to that step, it is already selected by default and it is grayed out. Why is this the case? I want to unselect that and just import the raw data. The field values would still line up with the fields in the Access table.

    In short, I want to import the raw data w/o field names. Is this possible?

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    it is already selected by default and it is grayed out. Why is this the case? I want to unselect that and just import the raw data. The field values would still line up with the fields in the Access table.
    You know that the columns in Excel line up with the fields in Access, but Access doesn't. So rather than corrupt the existing data, Access gives an error message.

    So I see your choices as:
    1) add a line at the top of the Excel sheet with the existing Access field names, then import the Excel data (couold be the easiest)
    2) import the Excel data into a new table in Access, then run an append query to move the data from the tmp table to the existing table.
    3) use VBA to open the Excel spreadsheet, read the data cell by cell and insert the data into the Access table. (Lots of code)

  3. #3
    Access_Novice is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2013
    Posts
    265
    I was thinking that I would have to do #1. I think I'll go with that. Thank you for your reply.

  4. #4
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,043
    Hi,

    I imported a lot of excel sheets and never had the problem that Access insisted on using the first row as fieldnames. If I don't check the 'First row contains ' in the first step of the wizard, Access just uses names as field1, field2, ... .

    Click image for larger version. 

Name:	ImpwizStep1.JPG 
Views:	12 
Size:	55.7 KB 
ID:	17875

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

Similar Threads

  1. Importing Excel data to an existing table
    By tonyrhills in forum Import/Export Data
    Replies: 3
    Last Post: 12-23-2011, 09:19 AM
  2. Importing Excel Spreadsheet
    By JayX in forum Access
    Replies: 2
    Last Post: 12-13-2011, 08:27 AM
  3. Importing Excel 2007 spreadsheet into Access 2002
    By jhjr in forum Import/Export Data
    Replies: 1
    Last Post: 06-17-2010, 02:05 PM
  4. importing excel spreadsheet issues
    By majortool in forum Import/Export Data
    Replies: 1
    Last Post: 01-24-2008, 06:29 PM
  5. Type error when importing Excel spreadsheet
    By jlmnjem in forum Database Design
    Replies: 2
    Last Post: 08-27-2006, 07:26 PM

Tags for this Thread

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