So I have a table called IPOrphans with the following fields:
Extension
AELN
Location
RELN
In a form for this table, I’m trying to create a combo box in RELN that uses the value in Location in that same record as criteria to filter choices in the combo box whose source is a different table (called IMCELN) which also contains a field “Location.” I’m trying to match the Location value in the current record of IPOrphans with the Location value in IMCELN to give me a list of choices. This list is a subset of IMCELN.
Example below
IPOrphans Form
Extension AELN Location RELN
72806 72803 WCLL2S <Combo box>
IMCELN Table
Department Location DELN
Infectious Disease WCLL2S 77899
Public Relations WCLL2S 72007
Pathology WCLL2N 77969
I want, if possible, the combo box in IPOrphans form to have at its source a query which uses the Location field of the same record (Value: WCLL2S) as criteria to return only the records for Infectious Disease and Public Relations.
I have searched for a solution for this and come close, but I just can’t get the statement right. Sometimes it comes up asking for IPOrphans.Location (which, if I enter “WCLL2S” will give me the choices I want. I just want it to use the Location field in that record to supply that. Otherwise it uses that value as criteria for the rest of the records.