Results 1 to 2 of 2
  1. #1
    Mike Henderson is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    1

    Pattern Matching In Access 2010

    I have a column REQ_LOCATION that is 5 Characters in length, either of those can be alpha or numeric. I would like to match the first 4 characters and the the fifth could be any value.

    Example of what I would like to return

    REQ_LOCATION
    MSCD1
    MSCD2
    MSCD3
    A12CA
    A12CB
    20411


    20412
    20418

    There are 1000s of record so any pattern matching or req expression would be great, VBA would be okay also.

    Thanks in advance

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    If you mean what I think, in a query a criteria of:

    Like "MSCD*"

    would return all the
    MSCD values.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Regular expression pattern
    By jacjacjac in forum Programming
    Replies: 1
    Last Post: 12-23-2012, 08:52 PM
  2. Replies: 8
    Last Post: 03-30-2012, 06:05 AM
  3. Replies: 1
    Last Post: 10-24-2011, 08:01 AM
  4. Singleton pattern
    By joki in forum Programming
    Replies: 0
    Last Post: 05-03-2011, 09:07 AM
  5. Programming Approach for Pattern Layouts
    By IvoryDragonfly in forum Programming
    Replies: 3
    Last Post: 10-09-2010, 01:14 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