I'm sure this is a fairly easy and basic operation, but I'm learning ms-access by youtube and have no clue where to start researching this. Ultimately I want to take two fields from my main table, use those fields to pull the primary key from a second table and return that value to a third field in my main table.
Specifically:
I have a table with two fields, each field can have 5 values (1,2,3,4,5) and (A,B,C,D,E) . I have another table with a unique key (RCS) for each permutation of number and letter: {[1,A,1]; [ 2,A,2]; [3,A,3]... [24,E,4]; [25,E,5]}.
So far I've been able to take the input from a form and run a query to spit out the key, so entering B and 5 returns 16, but this only returns the active field in the form, which is fine if I could record that result in the main table. For learning purposes I'd also like to be able to run a query and get the same result for every record I have.
Maybe my relationships are screwy, but when I try to run a query with var1, var2, and the key field for the table, I end up getting the every RCS that applies to var1, almost as if var2 is not "filtering" the query.