Results 1 to 3 of 3
  1. #1
    chr1stoper1 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    55

    excel to access import problems

    Hi Guys

    I have an issue that has arose in my database.My database has three main tables file 1 file 2 and file 1&2 joint.
    The data for these tables is uploaded daily by two macro enabled excel sheets. both macros are exactly the same but for some reason the file 2 upload will not upload anything but numbers although it was originally formatted as text. It does not happen in file one .Ive checked the formatting in the tables and for some reason table two field keeps changing??? anyone have any ideas?

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    When importing an Excel file into Access, Access tried to figure out (or more accurately "guess") the format of each field. I believe it does so by looking at the first ten records it is importing. Sometimes it guesses wrong, and the whole import fails. This can be a source of great frustration.

    There are various options you can try:

    - Try making sure that all possibilities for a field can appear in the first 10 rows. For example, if you have a column of US and Canadian zip codes, since Canadian zip codes have letters and US ones do not, make sure to include a Canadian in the first 10 rows so that Access knows this field cannot be formatted as numbers.

    - Try linking the Excel tables to an Access table. You can then use Update Queries to write the data from these linked tables to your final tables, making sure to do any necessary format conversion.

    - Export your Excel data to some sort of Text file (CSV, tab-delimited, space-delimited, etc), then import this Text file into Access where YOU have control over the format of every imported field.

    I often end up using the last option myself.

  3. #3
    chr1stoper1 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    55
    Hi thanks for the reply what you say makes sense.... I already have the excel sheets linked to access and run append queries...... think I might give the last idea a shot

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

Similar Threads

  1. Replies: 10
    Last Post: 06-16-2014, 08:37 AM
  2. Import access query data into excel file, using excel vba
    By exceljockey in forum Import/Export Data
    Replies: 3
    Last Post: 11-15-2013, 02:36 PM
  3. Replies: 4
    Last Post: 12-17-2012, 01:21 PM
  4. Import from Excel to Access
    By Phred in forum Programming
    Replies: 13
    Last Post: 05-16-2012, 12:25 AM
  5. Import excel to access
    By beha in forum Import/Export Data
    Replies: 8
    Last Post: 10-25-2011, 11:39 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