Results 1 to 2 of 2
  1. #1
    khughes46 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Grapevine, TX
    Posts
    231

    Import from Excel is changing every field Format to @


    To get data from a 3rd party website I have to export it into an Excel spreadsheet. When I import this file into Access the Format in all the fields are changed from no entry to "@". All the fields imported are defined as text, even numbers and dates. I can live with that but not the Format change. Is there a way to either prevent this at import time, or correct it en mass after import? Thanks for any help or suggestions.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    Are you importing to new table or existing table?

    It is possible to use VBA and TableDefs to modify field properties. I do that to modify AllowZeroLength property. Example:

    CurrentDb.TableDefs("tablename").Fields("fieldname ").AllowZeroLength = False

    However, I am not seeing the Format property available. Gets a little more complicated. Review http://answers.microsoft.com/en-us/o...?page=~pagenum~

    Although in your case you want to delete the format property, not create it.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 2
    Last Post: 04-29-2014, 05:03 PM
  2. Changing a Field Format
    By lwinford in forum Forms
    Replies: 3
    Last Post: 04-23-2013, 01:18 PM
  3. Replies: 4
    Last Post: 12-17-2012, 01:21 PM
  4. Replies: 7
    Last Post: 10-11-2012, 01:08 PM
  5. Excel Import field truncation problem (to Access Memo field)
    By jhrBanker in forum Import/Export Data
    Replies: 6
    Last Post: 07-27-2012, 08:52 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