Results 1 to 4 of 4
  1. #1
    whiskers197u8 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    2

    Single character fields through memos

    I am importing fields into a table from a csv file. The file has x columns and y records resulting in x*y fields. Each field in this csv file is being imported as a separate record in an access table. The problem I'm having is that I am currently at 1.9 million records, and that some of the data is as simple as a Y or N, while others can be as large as a full memo field. So I have set up my table such that the field that stores the value from the csv file is a memo.

    This database has several relational tables. So why does each field in the csv stored as a separate record, and not into an table with x columns? Because the csv file (technically, it's two files) is approximately 350 columns, and Access can't handle more than 255 columns. Well, that last statement might not be true, however, I am importing the data with the objConn.Open method and setting a recordset to this connection truncates columns after 255.

    I am not at privilage to share this db, so please don't ask. So my database is getting huge (currently over 150 MB).

    Is there a way that I can save space in this table, such that when I'm importing a field that only contains a few characters, the database table won't reserve an entire memo's worth of space for that answer?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    I don't think because a field is set as memo type that the db actually reserves that full allotted space. According to http://office.microsoft.com/en-us/ac...102505209.aspx a memo field can hold 1gb of characters. Access file size is limited to 2gb.

    It is correct that a table can have only 255 fields.

    Does Compact & Repair reduce the file size?
    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.

  3. #3
    whiskers197u8 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    2
    That makes perfect sense. Also, I thought that that the size limit was 2GB for an access object, not neccessarily the size of the database. And compact and repair does help a tiny bit. Thank you.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    Access total file size is limited to 2gb. http://office.microsoft.com/en-us/ac...010341462.aspx
    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: 6
    Last Post: 10-05-2012, 11:38 AM
  2. Counting fields in a single record
    By Racingrl in forum Queries
    Replies: 2
    Last Post: 06-11-2012, 10:52 AM
  3. Single list with different fields
    By Douglasrac in forum Reports
    Replies: 7
    Last Post: 04-12-2011, 04:36 PM
  4. Exporting data from single fields
    By Kipster1203 in forum Import/Export Data
    Replies: 1
    Last Post: 08-06-2010, 10:02 AM
  5. combining fields into a single list
    By rich in forum Queries
    Replies: 4
    Last Post: 02-23-2009, 06:41 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