Results 1 to 3 of 3
  1. #1
    cynthialea is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2011
    Posts
    2

    Query quesion

    1st post, and I hope it's in the right area.



    I have a basic DB setup with a position code, descr and I have anothe column that I want the result to show only the last letter of the pos code

    I want to run the query, ask what pos code to search (Like "*" & [Which Pos Code to search ] & "*"), type cbnagt. It pulls up this info and in C I only want the last letter and I want to be able to see which letter is available for the next position I need to assign.

    A B
    xxxcbnagtxxa Cabin Agent a
    xxxcbnagtxxb Cabin Agent b
    xxxcbnagtxxd Cabin Agent d

    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,640
    If I understand correctly:

    Right(FieldName, 1)

    will give you the last letter.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    cynthialea is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2011
    Posts
    2
    I had been doing that but either I must have had somehting wrong. I ended up doing a subquery

    TypeLetter: Right([Lastletter],1)

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

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