Results 1 to 3 of 3
  1. #1
    newyorkyankee is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    11

    Question How to break lines in memo fields?

    Hello,

    in my table there's a memo field containing the description of an object, e.g.: red, old, american, powerful, classic, still produced, big.

    How do I insert a new line after every comma so the memo field looks like a list, e.g.:

    red,
    old,
    american,
    powerful,
    classic,
    still produced,
    big



    And if I wanted to erase the comma and then break the line? Or break the line before an opening parenthesis?

    I could do it manually but there are thousands of records.

    Thanks!

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    A memo field is much like the "old shoebox" for photos. You just pitch the photos in the box. Very simple.
    Now if storing the photos was the only issue, issue solved!.
    However, it is quite typical to want to retrieve photos for different purposes or occasions. Now it's a little trickier.
    Reach in, get a good handful of photos, review each (turn 'em over to see if anyone had the foresight to write a date on it, or even identify some of those kids/friends/relatives we knew so well at the time). Next handful, and then another. This is quite similar to the memo field - stores lots of data, can't be indexed or easily manipulated, but real easy just to dump things in.
    However, getting things out, especially formatted, is now problematic. It's like storing html, you can store it, but it doesn't format until each of the controls gets rendered.
    The best tools for formatting are probably word processors, but then you'd have to embed the proper control characters in order fro the word -processor to render the final output as you intended.

    All this to say and highlight, that if you want to get something out of your database (or shoebox) in some predetermined formats, the best time to consider these facts is at design time. If you know what you want out, you can design/develop/create processes to ensure it happens (maybe).

    Perhaps things have changed in 2007 or 2010, with rich text etc, but I have 2003 and have no simple method of bolding and formatting memo fields easily. Memo fields are much like shoeboxes from my experience.

    I did google and found this (not a solution but other user experiences)
    http://social.msdn.microsoft.com/For...8-863b378d548c

    This may be useful.
    http://www.techrepublic.com/blog/mso...-and-2010/4795

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,619
    You are saving multiple distinct values into one field - bad design. If you ever want to search/sort by say color, how would you do that? If these are standard categories of data (color, age origin, etc), have a field for each.

    If you still want the memo field, try setting the Enter Key Behavior property of the textbox to 'New line in field'.
    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. Memo fields in separate tables
    By mhart in forum Database Design
    Replies: 1
    Last Post: 12-02-2011, 05:51 PM
  2. Memo -- SQL text fields
    By jim56 in forum Access
    Replies: 0
    Last Post: 12-01-2011, 03:54 PM
  3. Two Date/Time and Memo Fields
    By Luke in forum Access
    Replies: 3
    Last Post: 08-24-2011, 02:55 PM
  4. Remove lines from Memo field
    By bvallez in forum Programming
    Replies: 5
    Last Post: 08-08-2011, 06:40 PM
  5. Combined Fields as Memo
    By Duval in forum Queries
    Replies: 11
    Last Post: 09-13-2010, 08:56 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