Results 1 to 4 of 4
  1. #1
    jo15765's Avatar
    jo15765 is offline Expert
    Windows XP Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672

    Change Value Based off Value in Field


    I have a field in my database called importance...has 3 values, High Medium Low. I want to in my query assign to a different Field Technician based off of this value, so I want to in my query, if the value is High show Joe Jones, if it shows Medium show Richard Samps, if it shows Low show Mitchel Mixson.

    How would this conditional be set-up in my access query?

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Create a field in your Query something like this:
    Code:
    Field_Tech: IIF([Importance] = "High", "Joe Jones", IIF([Importance] = "Medium", "Richard Samps", "Mitchel Mixson"))
    Let us know if it works.

  3. #3
    jo15765's Avatar
    jo15765 is offline Expert
    Windows XP Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672
    Disregard my post, I got it working:
    Code:
    IIF([importance]="High", "Joe Jones", IIF([importance]="Medium", "Richard Samps", IIF([importance]="Low", "Mitchel Mixson")))

  4. #4
    jo15765's Avatar
    jo15765 is offline Expert
    Windows XP Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672
    Quote Originally Posted by Robeen View Post
    Create a field in your Query something like this:
    Code:
    Field_Tech: IIF([Importance] = "High", "Joe Jones", IIF([Importance] = "Medium", "Richard Samps", "Mitchel Mixson"))
    Let us know if it works.
    Looks like we were posting at the same time. Thanks for the response!

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

Similar Threads

  1. Replies: 3
    Last Post: 07-20-2012, 11:41 AM
  2. Replies: 1
    Last Post: 02-29-2012, 10:13 PM
  3. Replies: 30
    Last Post: 03-01-2011, 10:05 AM
  4. Image change based on combo box
    By bosve73 in forum Forms
    Replies: 4
    Last Post: 08-09-2010, 02:23 AM
  5. Updating subform based on combo box change
    By kev921hs in forum Forms
    Replies: 3
    Last Post: 04-01-2010, 08:43 AM

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