Results 1 to 3 of 3
  1. #1
    jbi is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2012
    Posts
    2

    Imported Records Into Access From a SAS Generated Excel File


    I generate a daily excel spreadsheet from a SAS query. This is usually about 89 records. When I import these records into an access database, I get 99 records. This includes the 89 good records and 10 blank records. Does anyone have an idea of what I doing wrong?

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    If you open the Excel file, and hit CTRL-END, what row does it go down to?
    If it goes 10 rows past the end, then the Excel file thinks there are 10 more records than there really are. That is probably just a matter of how SAS exports the data.

    If you make one of your Access table fields required, then it should not import those 10 extra rows (they should error out).
    Or, alternatively, you could create Delete Query and delete out the extra records after import (using "IS NULL" as the Criteria under one of your fields).

  3. #3
    jbi is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2012
    Posts
    2
    Absolutely right, Joe.

    There are 10 extra "blank" records generated in the excel file geneated from SAS. I'm going back to the SAS code to try to correct the code.

    Thanks.

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

Similar Threads

  1. Report How many records were imported
    By AlexisW in forum Programming
    Replies: 3
    Last Post: 05-24-2012, 11:08 AM
  2. Replies: 5
    Last Post: 03-01-2012, 01:11 PM
  3. import excel file to access 2003 yes, access 2007 no
    By stapik in forum Import/Export Data
    Replies: 9
    Last Post: 07-27-2011, 07:09 AM
  4. Excel rows sorted when imported to Access
    By gwn in forum Import/Export Data
    Replies: 1
    Last Post: 06-15-2011, 08:34 AM
  5. Linking Access Table with already imported External Data (Excel)
    By izzarshah in forum Import/Export Data
    Replies: 1
    Last Post: 07-29-2010, 09:40 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