Results 1 to 2 of 2
  1. #1
    CaperTS is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    1

    Exporting memo fields more than 255 characters from a query


    Hi all. I'm new here, please be kind.

    I have a database with long memo fields, more than 255 characters in many cases, that I have to export in a very specific format so that the information can be imported into another program. These fields are questions, answers, and explanations, which is why some of these memo fields are so long.

    The problem I am having is that I need each field entirely on one line before breaking to the next line (see below). Instead, some of these fields are returning on 2 or 3 lines rather than one.

    This is the format which I am trying to export to (numbers are just placeholders for line returns):

    1) Question
    2)
    3) Answer A
    4) Answer B
    5) Answer C
    6) Answer D
    7)
    8)
    9) Explanation
    10)
    11)
    12) Question
    13)
    14) Answer A
    15) Answer B
    ... and so on, and so forth...

    The query code I am using is
    Code:
    Question: Chr(13) & Chr(10) & [QUESTIONS.QUESTIONBODY] & Chr(13) & Chr(10) & Chr(13) & Chr(10) & [QUESTIONS.ANSWER_A] & Chr(13) & Chr(10) & [QUESTIONS.ANSWER_B] & Chr(13) & Chr(10) & [QUESTIONS.ANSWER_C] & Chr(13) & Chr(10) & [QUESTIONS.ANSWER_D] & Chr(13) & Chr(10) & Chr(13) & Chr(10) & Chr(13) & Chr(10) & [QUESTIONS.EXPLANATION] & Chr(13) & Chr(10) & Chr(13) & Chr(10)
    I have 90% of the query (though it may not be the prettiest way to write it), I just need to figure out how to get these fields on a single line. Any tips or suggestions?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    What do you mean by 'on 2 or 3 lines' - are you viewing the exported file, is it a text file, is the line simply wrapping?
    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: 12
    Last Post: 03-03-2013, 07:13 PM
  2. Replies: 1
    Last Post: 09-18-2012, 03:08 PM
  3. Lost characters when exporting reports to pdf
    By QTT in forum Import/Export Data
    Replies: 3
    Last Post: 08-29-2012, 05:05 PM
  4. Limited characters in a memo field
    By Robbyp2001 in forum Forms
    Replies: 11
    Last Post: 11-24-2011, 07:04 AM
  5. Replies: 1
    Last Post: 11-19-2010, 09:08 AM

Tags for this Thread

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