Results 1 to 4 of 4
  1. #1
    baxman is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2010
    Posts
    2

    Import Macro not pulling in all values from Excel Column

    I have an Excel spreadsheet with 10 columns. Column 9 has rows of data where some have a 6 digit number and some rows are blank. Out of the rows with data, some of the 6 digit numbers are stored as number, others are stored as text. The ones stored as text didn't get "recognized" on the import into Access as a table. Is there anything I can do so that it would have recognized all data, whether it was a number or text?

    Thanks for your help, New to the forumn.... Thanks!

  2. #2
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Before you import the file to Access you could save it as a .csv file. Everything would be text then and you can determine how you want to import each column in Excel into your table fields. You can specify by field what the makeup of that field will be. You cannot have mixed fields in Access. All records in a particular field must have the same property. Text, number, date, etc.

    Alan

  3. #3
    baxman is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2010
    Posts
    2
    So are you saying that whether the column in excel has the 6 digit value stored as text or a number, the saving it to a CSV first will ensure the values are picked up as long as I then import it into Access from the CSV instead of the XLS?

  4. #4
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    When you import from a CSV you can set the property for each of the fields. Do a manual import and set the specifications in the advanced screen. Once you have set the specifications, save it and remember the name of the specification. Use the specification name in your VBA when you do a transferspreadsheet function. This will assure you that all fields are imported as you desire and not leave Access to guess.

    Alan

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

Similar Threads

  1. Import to Excel from Access column of LOOKUP data type
    By Derek in forum Import/Export Data
    Replies: 1
    Last Post: 12-06-2010, 06:27 PM
  2. Pulling Specific Data from Excel
    By DICKBUTTONS in forum Access
    Replies: 1
    Last Post: 11-19-2010, 11:23 AM
  3. pulling text values into FK number column
    By REBBROWN in forum Database Design
    Replies: 2
    Last Post: 08-30-2010, 05:04 PM
  4. import using Macro
    By johnny1g in forum Import/Export Data
    Replies: 1
    Last Post: 09-15-2009, 04:21 AM
  5. inserting values in column based another column
    By wasim_sono in forum Database Design
    Replies: 1
    Last Post: 06-27-2006, 05:23 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