G
Guest
I've mastered adding simple lookup fields both manually and with the wizard.
However, I have a complex query that I want use as a lookup and I can't
figure out how.
Database setup...
* Parent table "Logs" with key fields "Well_ID" and "Tool_Order". "Tool_ID"
is a field in this table (must be entered).
* Daughter table "Log_Meas" with key fields "Well_ID", "Tool_Order", and
"Meas_ID"
* Table "Tool_Meas" with key fields "Tool_ID" and "Meas_ID" that lists the
measurements that can be made by each tool.
* Table "Measurements" with key field "Meas_ID" and field "Meas_Type" that
contains the desired lookup value.
Problem statement...
When working in daughter table "Log_Meas", I would like to add a lookup up
field for "Meas_ID" that look-ups values of "Meas_Type" from table
“Measurementsâ€, but limits the list to only those "Meas_ID" values in the
table "Tool_Meas" where "Tool_Meas.Tool_ID" equals the field value
"Logs.Tool_ID" in the associated parent table record.
I have created a query that performs this operation, by “hard-coding†in the
value of “Tool_ID†to “2†(set in Query field Criteria). What I can’t figure
out is how to use a variable query criteria for Tool_ID, that changes as the
selected parent table record, and associated value of Logs.Tool_ID changes.
Help!
However, I have a complex query that I want use as a lookup and I can't
figure out how.
Database setup...
* Parent table "Logs" with key fields "Well_ID" and "Tool_Order". "Tool_ID"
is a field in this table (must be entered).
* Daughter table "Log_Meas" with key fields "Well_ID", "Tool_Order", and
"Meas_ID"
* Table "Tool_Meas" with key fields "Tool_ID" and "Meas_ID" that lists the
measurements that can be made by each tool.
* Table "Measurements" with key field "Meas_ID" and field "Meas_Type" that
contains the desired lookup value.
Problem statement...
When working in daughter table "Log_Meas", I would like to add a lookup up
field for "Meas_ID" that look-ups values of "Meas_Type" from table
“Measurementsâ€, but limits the list to only those "Meas_ID" values in the
table "Tool_Meas" where "Tool_Meas.Tool_ID" equals the field value
"Logs.Tool_ID" in the associated parent table record.
I have created a query that performs this operation, by “hard-coding†in the
value of “Tool_ID†to “2†(set in Query field Criteria). What I can’t figure
out is how to use a variable query criteria for Tool_ID, that changes as the
selected parent table record, and associated value of Logs.Tool_ID changes.
Help!