Results 1 to 4 of 4
  1. #1
    matthewmessmer is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    2

    Question Have a Query only look at the last 4 letters in a name


    I have a table that has names and worker ID's in them. I need the query to pull just the last 4 items in the name (the worker ID). how do i get a query to look at the last four letters in the whole field?

  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,530
    This will return the last 4 letters:

    Right(FieldName, 4)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    matthewmessmer is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    2
    Thank you it works. never did no 2007

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    No problem, and welcome to the site.
    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. Custom letters database?
    By bluefrog in forum Access
    Replies: 7
    Last Post: 12-13-2012, 09:29 AM
  2. Duplicate first five letters
    By mystifier in forum Queries
    Replies: 1
    Last Post: 09-22-2012, 01:54 PM
  3. Replies: 2
    Last Post: 03-27-2012, 03:53 PM
  4. Count uppercase letters
    By Misha in forum Access
    Replies: 8
    Last Post: 03-01-2012, 10:37 AM
  5. capital letters
    By accesshelp in forum Forms
    Replies: 1
    Last Post: 07-14-2010, 12:37 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