I am trying to make a Query that looks up info in a table based on the row and field info.
The Query gets info from Table A and Table B.
Table A has 2 fields of info that are used to lookup info from Table B.
Table A
C1 C2 (fields)
10 L1
10 L3
22 L2
Table B
N L1 L2 L3 (fields)
10 5 6 8
20 6 8 8
22 2 5 7
What I need to show in the query is the first 2 fields from Table A, and the third field derived from Table B:
Query C
C1 C2 TB
10 L1 5
10 L3 8
22 L2 5
I know how to do this if Table B has only 2 field (N and L1).
I can't figure out how to do a matrix lookup.
I get these tables as is. I can not change the format/layout the data comes in.
This info has to go into a Query as there are several steps after I get this info.
The above info is a simplified version of the actual tables, but this is the crux of the problem.
Thanks for any help.
The Query gets info from Table A and Table B.
Table A has 2 fields of info that are used to lookup info from Table B.
Table A
C1 C2 (fields)
10 L1
10 L3
22 L2
Table B
N L1 L2 L3 (fields)
10 5 6 8
20 6 8 8
22 2 5 7
What I need to show in the query is the first 2 fields from Table A, and the third field derived from Table B:
Query C
C1 C2 TB
10 L1 5
10 L3 8
22 L2 5
I know how to do this if Table B has only 2 field (N and L1).
I can't figure out how to do a matrix lookup.
I get these tables as is. I can not change the format/layout the data comes in.
This info has to go into a Query as there are several steps after I get this info.
The above info is a simplified version of the actual tables, but this is the crux of the problem.
Thanks for any help.