timidjewel
Technical User
I'm new to query building in Access. I have a unique identifier such as an employee id and the result in question is fruits. If an employee has more than one fruit, i want to see the word "multiple". If the employee has only one fruit, i want to see that fruit. How do i write a formula to show this. I'm assuming an IIF statement would work, but i'm not sure how to write it. Can someone help?
fruit emp id name
apples 12345 John Smith
oranges 12345 John Smith
lemons 12345 John Smith
oranges 54321 Joseph Smith
apples 98763 Mary Jones
lemons 98763 Mary Jones
fruit emp id name
apples 12345 John Smith
oranges 12345 John Smith
lemons 12345 John Smith
oranges 54321 Joseph Smith
apples 98763 Mary Jones
lemons 98763 Mary Jones