I have a query that identifies a row and column, but can not figure out how to select the intersect of these in a joined table. Say the first two fields in my query retrieve II and c. One of the joined tables in my query is:
a b c d e f
I 1 2 3 4 5 6
II 21 22 23 24 25 26
III 31 32 33 34 35 36
If the first field in the query equals II and the second field equals d, how to I write the next field so it will return 24? Can I set a variable for the column heading? I have 20 columns that I need to apply this to, so I'm hoping I can do it without a huge nested IIF or Select statement.
Thanks.
a b c d e f
I 1 2 3 4 5 6
II 21 22 23 24 25 26
III 31 32 33 34 35 36
If the first field in the query equals II and the second field equals d, how to I write the next field so it will return 24? Can I set a variable for the column heading? I have 20 columns that I need to apply this to, so I'm hoping I can do it without a huge nested IIF or Select statement.
Thanks.