Ok, I am going to do the best I can in explaining this... Here it goes:
-I have two table that list information for ID numbers (ID #'s are primary key)
-The first table includes the fields; Tray1 and Seq1.
-The second table includes Tray2 and Seq2.
-The first step is that I would like to create a single query that would allow me to enter an ID, & The query would then look in Table1 to find Tray1 and Seq1 for that ID
-The second step (this would be done at the same time) I would also like it to do, would be to find the ID that corresponds to the same Tray1, but one less than Seq1 (i.e. Seq1 minus 1). The query would then look up the resulting ID in Table 2, and return the Tray2 and Seq2 for that ID.
For example, in the following tables if I enter ID 106, which is in Tray1=2 and Seq1=2, it would then locate Tray1=2 and Seq1=1, which is ID=104. The query would then look up ID=104 in Table 2, and return Tray2=29 and Seq2=18.
TABLE 1 TABLE 2 ID Tray1 Seq1 ID Tray2 Seq2 101 6 14 101 31 3 102 2 3 102 16 2 103 1 4 103 18 21 104 2 1 104 29 18 105 5 6 105 4 16 106 2 2 106 8 49 107 6 8 107 16 20 enter ID (this is entered in the query) = 106 Then the results would be this:
ID= 104
Return Tray2 = 29Return Seq2 = 18
I am hoping that this is possible to do all in 1 step. Currenty I have 2 queries I use to make this happen and I would like to make this an easy 1 step qry. Any (simplified) help would be very much appreciated!!