Results 1 to 4 of 4
  1. #1
    croydon is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2009
    Posts
    10

    Out of memory exporting to spreadsheet

    I am copying the contents of an Access table to an Excel spreadsheet. I have a problem copying the contents of a memo field.

    If I try to copy using the code below, I get a run-time error '1004' - Application defined or object-defined error:

    xlsheet.Cells(intRow, 4).Value = rs(3)

    If I use the code below I get run-time error '7' - Out of memory:

    If Len(rs(3)) > 0 Then


    xlsheet.Cells(intRow, 4).Value = Left(rs(3), Len(rs(3)))
    End If

    Any suggestions would be appreciated.

  2. #2
    croydon is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2009
    Posts
    10
    The length of rs(3) was 2076 characters.

  3. #3
    Join Date
    May 2010
    Posts
    339
    How many records are you trying to export?

  4. #4
    croydon is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2009
    Posts
    10
    There are about 400 records in the table. That particular column has various lengths (it is a 'comments' field).

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

Similar Threads

  1. Replies: 9
    Last Post: 11-09-2011, 11:34 AM
  2. Importing jpgs running out of memory?
    By cowboy in forum Reports
    Replies: 1
    Last Post: 05-22-2010, 08:25 PM
  3. access 2003 on vista Out of Memory Problem
    By skbrede in forum Access
    Replies: 0
    Last Post: 07-25-2009, 08:28 AM
  4. Replies: 0
    Last Post: 01-09-2009, 03:10 PM
  5. Out of Memory
    By Norman Masson in forum Access
    Replies: 0
    Last Post: 12-29-2008, 11:09 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