Results 1 to 6 of 6
  1. #1
    VICTORE is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Aug 2019
    Posts
    3

    How To Reduce Default Short Text Field Size


    Hi. I'm trying to reduce the size of some text files being imported. Access defaults to a ShortText Field Size of 255. I went into "Object Designers" and changed Default TExt Field Size to 60, but when I import my text files, all text fields are still denoting to 255 integers? Anyone know why? Many thanks. Vic

  2. #2
    GinaWhipp's Avatar
    GinaWhipp is offline Competent Performer
    Windows 7 64bit Access 2013 32bit
    Join Date
    Jul 2011
    Location
    Ohio, USA
    Posts
    377
    Hmm, nope, that won't help. Your best bet is to create a Temp table providing the fields are always the same and import into that table and then push to to live table with the correct settings. Now, you couls just import into the live table but I just prefer Temp table first to check for errors.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    Your import creates table? Not import to existing table?
    You aren't using object design to create table. The import operation has its own defaults.
    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.

  4. #4
    VICTORE is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Aug 2019
    Posts
    3
    Thanks, an arduous step to have to add, but might have to do it this way as I need to reduce txt size fields, otherwise >2gb when all done n dusted...I'll investigate how I reduce short txt fields in csv in the interim...

  5. #5
    VICTORE is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Aug 2019
    Posts
    3
    Hi. So in my import operation, you mean the CSV file? I would have thought as part of the Access Import Text Wizard I could change/reduce the size of the individual text fields being imported, but when I click on Advanced option for any field, I get a "Method 'Width' of object 'IImexGridColumn' failed" message? Odd...But thanks anyway, you've made me realise object design change isn't the solution, I'm pretty green at all this..

  6. #6
    GinaWhipp's Avatar
    GinaWhipp is offline Competent Performer
    Windows 7 64bit Access 2013 32bit
    Join Date
    Jul 2011
    Location
    Ohio, USA
    Posts
    377
    You need to set up the Temp table and then create the Import Specification to put the data in that table. That said I'm wondering about the size of the file if the 2g limit is a consern. Another note, it's not the size of the field that determines the size of the database. It is the data within those fields.

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

Similar Threads

  1. Trying to Reduce Database Size
    By MarcLiq in forum Access
    Replies: 1
    Last Post: 12-29-2011, 03:55 PM
  2. How to reduce the size of Login Form!
    By cap.zadi in forum Forms
    Replies: 7
    Last Post: 09-14-2011, 11:01 PM
  3. Reduce field size in query field
    By escapades_access in forum Queries
    Replies: 9
    Last Post: 03-13-2011, 12:21 PM
  4. Reduce PDF File Size
    By Phil Knapton in forum Programming
    Replies: 11
    Last Post: 02-16-2011, 09:10 AM
  5. Automatically Reduce Field Size
    By Rebecca in forum Access
    Replies: 4
    Last Post: 01-06-2010, 10:14 PM

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