[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Col 1
[/TD]
[TD]Col 2
[/TD]
[TD]Col 3
[/TD]
[TD]Col 4
[/TD]
[TD]Col 5
[/TD]
[TD]Col 6
[/TD]
[TD]Lookup
[/TD]
[/TR]
[TR]
[TD]John Smith 12345 HoS
[/TD]
[TD]Jane Simpson 3456
[/TD]
[TD]Another Name 9876
[/TD]
[TD]Hector Wilson 34523
[/TD]
[TD]etc
[/TD]
[TD]etc
[/TD]
[TD]12345
[/TD]
[/TR]
[TR]
[TD]Jane Jones 53425
[/TD]
[TD]Another Name 9876
[/TD]
[TD]Kelly White 19282
[/TD]
[TD]Adam Lewis 45455
[/TD]
[TD]etc
[/TD]
[TD]etc
[/TD]
[TD]45455
[/TD]
[/TR]
[TR]
[TD]Hector Wilson 34523
[/TD]
[TD]John Smith 12345
[/TD]
[TD]Kelly White 19282
[/TD]
[TD]Phil West 765655
[/TD]
[TD]etc
[/TD]
[TD]etc
[/TD]
[TD]12345
[/TD]
[/TR]
[TR]
[TD]Adam Lewis 45455
[/TD]
[TD]Jane Simpson 3456
[/TD]
[TD]Jane Jones 53425
[/TD]
[TD]Hector Wilson 34523
[/TD]
[TD]etc
[/TD]
[TD]etc
[/TD]
[TD]45455
[/TD]
[/TR]
</tbody>[/TABLE]
Hi
I'm fairly new to Access and have a problem that I can't seem to work out on my own. Not really sure how to describe it so hope the title is ok.
I have a data set that contains (amongst other things) 6 columns that have lists of names with ID numbers and job role i.e. 1 record might be "John Smith 12345 Head of Sales". Often with brackets and other symbols thrown in.
I have a list of about 36 ID numbers that I want to look up across the 6 columns. I have done this before with a much smaller list of ID numbers (6) using nested iif's and "like".
However, now I have over 30 values I'm hoping there's a much quicker way to do this?
I don't mind if I have to look up to the 6 columns individually and then combine the results in to 1 column. I just don't want to nest an iif 30 odd times.
Someone suggested I use "in" but I can't work out how to do this in a query
Sample data above (I couldn't work out o to move it to the bottom)
Grateful for any help
<tbody>[TR]
[TD]Col 1
[/TD]
[TD]Col 2
[/TD]
[TD]Col 3
[/TD]
[TD]Col 4
[/TD]
[TD]Col 5
[/TD]
[TD]Col 6
[/TD]
[TD]Lookup
[/TD]
[/TR]
[TR]
[TD]John Smith 12345 HoS
[/TD]
[TD]Jane Simpson 3456
[/TD]
[TD]Another Name 9876
[/TD]
[TD]Hector Wilson 34523
[/TD]
[TD]etc
[/TD]
[TD]etc
[/TD]
[TD]12345
[/TD]
[/TR]
[TR]
[TD]Jane Jones 53425
[/TD]
[TD]Another Name 9876
[/TD]
[TD]Kelly White 19282
[/TD]
[TD]Adam Lewis 45455
[/TD]
[TD]etc
[/TD]
[TD]etc
[/TD]
[TD]45455
[/TD]
[/TR]
[TR]
[TD]Hector Wilson 34523
[/TD]
[TD]John Smith 12345
[/TD]
[TD]Kelly White 19282
[/TD]
[TD]Phil West 765655
[/TD]
[TD]etc
[/TD]
[TD]etc
[/TD]
[TD]12345
[/TD]
[/TR]
[TR]
[TD]Adam Lewis 45455
[/TD]
[TD]Jane Simpson 3456
[/TD]
[TD]Jane Jones 53425
[/TD]
[TD]Hector Wilson 34523
[/TD]
[TD]etc
[/TD]
[TD]etc
[/TD]
[TD]45455
[/TD]
[/TR]
</tbody>[/TABLE]
Hi
I'm fairly new to Access and have a problem that I can't seem to work out on my own. Not really sure how to describe it so hope the title is ok.
I have a data set that contains (amongst other things) 6 columns that have lists of names with ID numbers and job role i.e. 1 record might be "John Smith 12345 Head of Sales". Often with brackets and other symbols thrown in.
I have a list of about 36 ID numbers that I want to look up across the 6 columns. I have done this before with a much smaller list of ID numbers (6) using nested iif's and "like".
However, now I have over 30 values I'm hoping there's a much quicker way to do this?
I don't mind if I have to look up to the 6 columns individually and then combine the results in to 1 column. I just don't want to nest an iif 30 odd times.
Someone suggested I use "in" but I can't work out how to do this in a query
Sample data above (I couldn't work out o to move it to the bottom)
Grateful for any help