J
John
I have a query (Results) that references fields calculated in a second
query (Calculation_Query). The relationship is such that Results may
have records for which there are no records in Calculation_Query since
Results includes other tables. Initially, one of the inputs for the
calculated fields in Calculation_Query was based off of a cascading
query. Now, I have written a function to provide the input instead.
In the version where the calculated fields were based off of the
queries, the calculated fields would be Null in the Results query when
Calculation_Query returned no records. However, the calculated fields
now return #Error to Results when Calculation_Query has no
corresponding record. Non-calculated fields from Calculation_Query
still return Null, only the calculated fields now return #Error. Any
help is appreciated. Thanks
query (Calculation_Query). The relationship is such that Results may
have records for which there are no records in Calculation_Query since
Results includes other tables. Initially, one of the inputs for the
calculated fields in Calculation_Query was based off of a cascading
query. Now, I have written a function to provide the input instead.
In the version where the calculated fields were based off of the
queries, the calculated fields would be Null in the Results query when
Calculation_Query returned no records. However, the calculated fields
now return #Error to Results when Calculation_Query has no
corresponding record. Non-calculated fields from Calculation_Query
still return Null, only the calculated fields now return #Error. Any
help is appreciated. Thanks