+ Reply to Thread
Results 1 to 4 of 4

Importing Excel Into Access - Stripping Out Records Like X546 But Not 2356

  1. #1
    Registered User
    Join Date
    03-09-2009
    Location
    Rochester, NY, USA
    MS-Off Ver
    Excel 2007
    Posts
    25

    Importing Excel Into Access - Stripping Out Records Like X546 But Not 2356

    Hi,

    I'm trying to import/convert an excel spreadsheet into an access table.

    When the spreadsheet is imported, not all of the SKU's carry over. For instance,
    numbers such as 1827 appear, however sku's such as X4756 do not.

    I tried having access set it's own primary key in place of the skus, but it
    still it gets rid of sku's with numbers.

    Maybe there's a setting to allow numbers and letters in an import, but I haven't
    found it.

    Please help, I'm using Access + Excel 2003.
    Last edited by jessekanclerz; 03-26-2009 at 11:20 AM.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Importing Excel Into Access - Stripping Out Records Like X546 But Not 2356

    Access will look at the first record of an imported Excel file to determine the data type for each column. If your first record has a pure number type of SKU, then Access will think the data for all the SKUs should be a number, and will then exclude alphanumeric SKUs. One simple solution is to ensure the first record has an alphanumeric SKU so Access will treat all the SKUs as text instead of a number.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    03-09-2009
    Location
    Rochester, NY, USA
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Importing Excel Into Access - Stripping Out Records Like X546 But Not 2356

    Thanks for answering ConneXionLost,

    However, I managed to figure out a solution. Saving the excel worksheet as a csv and importing it will allow you to change the data type option to text instead of numeral. This allowed me to import alphanumeric skus.

  4. #4
    Registered User
    Join Date
    05-27-2006
    Posts
    16

    Re: Importing Excel Into Access - Stripping Out Records Like X546 But Not 2356

    Perhaps a simpler method would be to "preformat" the column in Excel where the SKU's are as text.

    The proper steps are to first start with a blank sheet, format the SKU column as text, then populate that column with SKU's. Anything that is then typed in that column will be treated as text, even if pure numbers are entered.
    Should be easy for Access to import without dropping any records.

    Also, no need to convert anything to CSV format. You can simply work with the original file.

+ 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.6.0 RC 1