Hi all,
I wonder if you can help. I am trying to write a query that sum's the value of a field in a table according to what the lookup value of this field is on a corresponding table.IE. Table "External elements" contains fields "Element name" and "Work Required". "Work required" is a text value which corresponds to a field name in a second lookup table "External lookup".The value of this field is numeric and represents the cost of the element.How can I write a query to run thru all the elements in "External elements" and sum the corresponding values in "External lookup". Or is it a case of structuring my tables differently. Thanks in anticipation.
Quinny
[sig][/sig]
I wonder if you can help. I am trying to write a query that sum's the value of a field in a table according to what the lookup value of this field is on a corresponding table.IE. Table "External elements" contains fields "Element name" and "Work Required". "Work required" is a text value which corresponds to a field name in a second lookup table "External lookup".The value of this field is numeric and represents the cost of the element.How can I write a query to run thru all the elements in "External elements" and sum the corresponding values in "External lookup". Or is it a case of structuring my tables differently. Thanks in anticipation.
Quinny
[sig][/sig]