Results 1 to 4 of 4
  1. #1
    bigern87 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    8

    Question Formatting an Access table after importing from Excel

    I have some information in an Excel spreadsheet that I am trying to import and link into an Access table. The information in Excel is not formatted the way I would if I was creating the Excel file myself to link to Access. There are some extra rows and columns that are not needed in the Access database but I cannot get rid of these with the Import wizard. The import wizard gives me the option to use the first row as the title row or not, but that is the only option. My desired title row is in row 4 and the first column I need is in column C. Is there any way I can get this formatted to suit my Access needs?



    Attached is the Excel spreadsheet that I am working with. Please let me know if you can help with this concern.
    Attached Files Attached Files

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    A few options to consider:

    - Open up the Excel file and highlight the range you need to import/link and name it. Then, when you import/link the Excel data, you can specify to import/link the named range area only.

    - Import everything, and use a delete query to delete the records you do not need.

    - Similarly, if you are importing into a pre-defined table, you may be able to put some conditions on certain fields that will cause any records not meeting those criteria to drop.

  3. #3
    bigern87 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    8
    I just named the range and that works great! My only concern now is that this Excel spreadsheet is refreshed every Monday. This is not going to affect the named range is it? If more employees are added, will those employees not be included?

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    It depends on how new employees are added. If they are inserted inside of the named range, it show automatically grow and contain them all. If the new employees are added after the named range, they will not be. You could have your named range go down a few extra rows, so it can capture new names added in the future.

    This of course assumes that when you say refreshed, you mean new names are added to the existing workbook. If a whole new Excel workbook file is created, obviously it won't have a named range.

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

Similar Threads

  1. Access VBA Excel Pivot Table Formatting
    By Tomlon in forum Programming
    Replies: 1
    Last Post: 02-07-2013, 02:28 PM
  2. Replies: 10
    Last Post: 12-28-2012, 02:06 PM
  3. Importing And Comparing A Table From Excel
    By David92595 in forum Import/Export Data
    Replies: 5
    Last Post: 10-04-2012, 08:23 PM
  4. Importing excel file to append a table
    By vickan240sx in forum Access
    Replies: 1
    Last Post: 06-27-2012, 02:46 PM
  5. Beginner-Importing excel table question
    By simmonsmtb in forum Import/Export Data
    Replies: 3
    Last Post: 03-07-2011, 11:55 AM

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