Results 1 to 2 of 2
  1. #1
    wongray is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2008
    Posts
    6

    How to take portion of the data from a Memo Field

    Hi There,

    I like to ask how to take a portion of the data from a memo field.

    Example:

    "This is a test for a memo field and I like to setup a date 01/10/2012. This is somethig I need to do is to able to filter a certain filed in the memo data and take the first 14 character out into differnt querry field."

    The answer that I expect in other querry field is:

    date 01/10/2012

    Please advice.
    Thanks


    Ray

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    date 01/10/2012 is 15 characters because of the space. These are not the first characters of the example string.

    Will the date always be 10 characters, with placeholder zeros? Will there be only the one date in the string? Will those / characters be the first or only ones in the string? Try:

    assume x represents name of the memo field
    Mid(x, InStr(Nz(x,""),"/")-7,15)
    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. Bold portion of text in memo field.
    By kenton.l.sparks@gmail.com in forum Access
    Replies: 1
    Last Post: 05-01-2012, 03:32 PM
  2. Exporting Memo field Data to Word document
    By samlennox in forum Programming
    Replies: 2
    Last Post: 04-25-2011, 11:57 PM
  3. Replies: 3
    Last Post: 03-05-2011, 12:46 PM
  4. Memo Field Not Keeping Data
    By maintt in forum Forms
    Replies: 1
    Last Post: 08-12-2010, 05:55 PM
  5. Replies: 1
    Last Post: 06-09-2006, 05:44 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