Results 1 to 2 of 2
  1. #1
    snoopy2003 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    72

    Import excel worksheet by range with non identical headers

    Hello,



    I have an excel workbook with worksheet and access db with a table (headers count equals to fields count).

    I want to check whether the first column header name equal to first table field name and then copy a range from the worksheet to the table
    without the headers.


    My problem is: Access keeps generating error message about non identical headers.

    How can I do it ?

    Thank you for your help

  2. #2
    thhui is offline Competent Performer
    Windows XP Access 2002
    Join Date
    Feb 2009
    Posts
    235
    Try the same field names with excel range and access table.
    It is the recommended answer.

    You should ensure it is the same instead of checking it by access.

    Access just compare the same headerName with fieldName in the table
    and imports if it works.

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

Similar Threads

  1. Excel Automation Select Range Only with Data
    By orcinus in forum Programming
    Replies: 3
    Last Post: 02-09-2011, 01:03 PM
  2. VBA to Import Excel Worksheet
    By bdaniel in forum Programming
    Replies: 2
    Last Post: 11-23-2010, 10:53 AM
  3. Replies: 1
    Last Post: 11-21-2010, 10:26 PM
  4. Importing the second excel worksheet
    By geoffwbailey in forum Programming
    Replies: 1
    Last Post: 06-25-2010, 12:16 AM
  5. How to import named range from excel
    By timpepu in forum Import/Export Data
    Replies: 1
    Last Post: 02-19-2010, 11:26 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