Results 1 to 5 of 5
  1. #1
    Sarge, USMC is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    43

    Import from Excel creates empty records

    I take raw data downloaded from our website into an excel spreadsheet and import into an access table.
    When I do that, empty records are created in the table, and I don't know why.

    Also, one of my tables is returning the following when I import from excel:

    Click image for larger version. 

Name:	Access error.jpg 
Views:	9 
Size:	53.1 KB 
ID:	32771

    It only happens when importing to that specific table, and again, I don't know why. Clicking "Yes" does import the data tho.

    Any assistance would be greatly appreciated.

    TY.



    Semper Fi

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    sometimes excel has 'nothing' but access sees it as something.
    (like pressing the delete key to remove excel data, theres no data there, but excel will still show records)

    during import, filter out the blanks
    [field] not null
    or
    [field]<> ""

  3. #3
    Sarge, USMC is offline Advanced Beginner
    Windows XP Access 2016
    Join Date
    Oct 2010
    Posts
    43
    I'm sorry...I'm unsure of what you're telling me to do. Specifically what's happening is a bunch of empty records are being added to the table that appear above the existing records in the table....so I have to delete all the empty records every time I import.

    If I look at the page break preview of the excel data, there are no "empty" rows. So I'm not sure why access is seeing "empty" data and creating "empty" records in the table.

    It's not XP.....its Win10

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    build an append query (import) to ignore the empty records
    where [field]<>""

  5. #5
    John_G is offline VIP
    Windows 10 Access 2016
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    ...a bunch of empty records are being added to the table that appear above the existing records in the table.
    That does not mean that they were at the top of the spreadsheet. In many cases, where you see them when you open the Access table is governed more by how the Access table data is sorted than it is by where the blank rows were in Excel.

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

Similar Threads

  1. Import Excel to access creates Scientific notation numbers
    By OldenMcdonald in forum Import/Export Data
    Replies: 4
    Last Post: 05-29-2017, 11:32 AM
  2. Replies: 11
    Last Post: 04-27-2017, 05:16 PM
  3. Import data from excel, with repeating records
    By ali1979 in forum Import/Export Data
    Replies: 8
    Last Post: 02-16-2017, 02:37 AM
  4. Link to text file creates #Num! error on import
    By GregTheSquarePeg in forum Import/Export Data
    Replies: 8
    Last Post: 10-11-2013, 04:32 AM
  5. import excel sheet causes autonumber beyond records
    By BCJourney in forum Import/Export Data
    Replies: 11
    Last Post: 09-25-2013, 06:02 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