OK,
So you have fields [Staff 1] and [Staff 2] in the [Stores] table. In the
form for entering store info, you now have two combo boxes (I would name
these cbo_Staff_1 and cbo_Staff_2), which both reference the [Staff Names]
table as their Row Source.
Back to the Query grid.
You will need to have the [Stores] table, and two copies of the [Staff
Names] table (when you add the second staff names table, it will probably
read [Staff Names_1]) in your query grid. Click and hold on the ID field in
[Staff Names] and drag onto the [Staff 1] field in the [Stores] table. Then
click and hold on the ID field in the [Staff Names_1] table and drag that
connection to the [Staff 2] field in the [Stores] table.
Right click on each of the lines connecting [Stores] to the two staff names
tables and select the "Join Properties" option. Once that dialog has come
up, click on the radio button that says something like: "Include all records
from 'Stores' and only those records from 'Staff Names' where the joined
fields are equal. Then click OK and repeat for the link to the other staff
names table.
If there are not any fields listed in the grid at the bottom of the page,
double click on the * at the top of the [Stores] table, that tells Access to
include all the fields from the Stores table in the query. Next, double
click on the [Staff Names] field in the [Staff Names] table (you should now
see this in the grid). Repeat this for the other [Staff Names_1] table.
Run this query (click the excaimation point in the ribbon bar) to make sure
you have all the fields you need for your report (along with the two names).
Now save the query and go back to the design view of the report. Select the
[Staff 1] field, open the properties window, and then select the [Staff
Names] field as the control source for that field. Do the same for the
[Staff 2] field, but select the 2nd version of the [Staff Names].
Hopefully, you will now see the names of the staff, rather than their ID
values in the report.
--
HTH
Dale
Don''t forget to rate the post if it was helpful!
email address is invalid
Please reply to newsgroup only.