Harry Shmedlap
Registered User.
- Local time
- Today, 23:36
- Joined
- Aug 9, 2005
- Messages
- 51
Given a table with 3 fields for people, where each person can be either Curly, Lary or Moe, and 3 fields for chairs, where each chair can be either Blue, Red or Green. Here are two such records:
Per1 Per2 Per3 Per1_Chair Per2_Chair Per3_Chair
Curly Lary Moe Blue Green Red
Lary Curly Moe Red Blue Green
How do I get 3 new fields - Blue, Green and Red - each of which shows the person in that color for the respective record:
Blue Green Red
---- ------ -----
Curly Lary Moe
Curly Moe Lary
I did this in Excel by adding 3 columns and using a formula with functions match, offset and lookup, but I want to do this instead with a query.
Thanks in advance.
Per1 Per2 Per3 Per1_Chair Per2_Chair Per3_Chair
Curly Lary Moe Blue Green Red
Lary Curly Moe Red Blue Green
How do I get 3 new fields - Blue, Green and Red - each of which shows the person in that color for the respective record:
Blue Green Red
---- ------ -----
Curly Lary Moe
Curly Moe Lary
I did this in Excel by adding 3 columns and using a formula with functions match, offset and lookup, but I want to do this instead with a query.
Thanks in advance.