Results 1 to 4 of 4
  1. #1
    hertfordkc is offline 18 year novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    481

    Convert memo field to multiple text fields

    In 2002, I set up a database with Access 97 which included a table with a memo field. Through the years, the database has moved from Windows XP and Access 97 to Windows 7 and Access 2007.


    Recently, the memo data has been difficult to edit (the display will move away from the cursor, or a new record will be inserted). Posts and searches of this forum and others have not yielded a solution nor an explanation of why it has happened.
    It appears to be logically straightforward to convert the memo data into multiple text fields as the memo field can be parsed for dates of entry. Can someone share the technique or VB to do this?

    TIA

  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,626
    Can use string manipulation functions to parse text. Consistency of structure is critical. What would be searched for in the string that would indicate a break?
    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
    hertfordkc is offline 18 year novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    481
    Each memo field is associated with an unique account number. Within the field, each entry usually contains a date within 255 characters.
    Would substring parse beyond 255 characters? My reading of the documentation suggests that text operations on the MEMO field aren't possible. In other words, I see how to break up the first 255 characters, but don't see what to do beyond that.

  4. #4
    hertfordkc is offline 18 year novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2011
    Posts
    481
    Thanks, June7.
    I dared to try the string functions on the memo field and they do work. I'll work out a routine to convert the memo fields to text fields.

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

Similar Threads

  1. Replies: 2
    Last Post: 07-09-2014, 06:41 PM
  2. Replies: 5
    Last Post: 06-19-2012, 10:46 AM
  3. Memo -- SQL text fields
    By jim56 in forum Access
    Replies: 0
    Last Post: 12-01-2011, 03:54 PM
  4. Replies: 0
    Last Post: 10-03-2011, 03:32 AM
  5. Replies: 5
    Last Post: 08-29-2011, 05:17 PM

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