G
Guest
Hi,
I want a field (TrendOverTime) in a table to have a string inserted; UP, DOWN or OK, based on the result of query1.
Query1 contains 0-5 rows and some fields/columns, but the only field of interest here is Trend. If query1 contains 0-5 rows where _every_ row's Trend-field states "UP" or "DOWN", I want the TrendOverTime-field in the table to state "UP" respectively "DOWN" as well. If the query1 Trend-fields would be containing any other combinations or no rows at all, the table field should be set "OK".
The questions: how do I ask a table field to execute and request the results of query1 and evaluate those as described above? Is it possible or should I take another approach?
Many thanks, Peter
I want a field (TrendOverTime) in a table to have a string inserted; UP, DOWN or OK, based on the result of query1.
Query1 contains 0-5 rows and some fields/columns, but the only field of interest here is Trend. If query1 contains 0-5 rows where _every_ row's Trend-field states "UP" or "DOWN", I want the TrendOverTime-field in the table to state "UP" respectively "DOWN" as well. If the query1 Trend-fields would be containing any other combinations or no rows at all, the table field should be set "OK".
The questions: how do I ask a table field to execute and request the results of query1 and evaluate those as described above? Is it possible or should I take another approach?
Many thanks, Peter