+ Reply to Thread
Results 1 to 2 of 2

Thread: Problem when importing from Excel to Access

  1. #1
    Registered User
    Join Date
    08-24-2011
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Problem when importing from Excel to Access

    I have an existing access database that I have edited to add data columns. When I import the data from excel to the access database it is adding 6 blank rows (which are separating the data). This is happens twice in the data.

    I added 3 new columns of data. All the data appears to have imported correctly it just added 6 blank rows twice. I just dont want to have any problems going forward from this point.

    So my question is why would it add 6 blank rows?

  2. #2
    Forum Guru davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2007
    Posts
    1,879

    Re: Problem when importing from Excel to Access

    Access will import everything down to the last row on the spreadsheet with data in it. If you have blank rows of data, but have more data underneath them, they will be imported into Access as an empty record.

    It would be best to clean up your spreadsheet so there are no blank rows, but if you can't do that you can run a simple query to get rid of empty records like this:
    DELETE * FROM tablename WHERE filledfield Is Null
    filledfield should be a field in the table that will always be filled in for vaild records.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0