I have a DataForm with a calculated field. In the calculated field, I would like to look up and Sum matching records in a View. I know that you can query a Table in a calculated field, and I have done this successfully. However, the value that I need is currently in a View. When I create the query in the calculated field using the name of a View, I get an Invalid Formula error. I am trying to use a View instead of a table because there is not a direct relationship between the current table the DataForm is based on and the Table the value I need to Sum is in. I have to relate both tables via a third 'join' table to get it
If, in fact, you can't query a View in a calculated field, is it possible to create a query in a Calculated field that joins multiple tables together (I'm guessing no - all of the examples of queries in calculated fields I've seen are simple SELECTs on one table.) Thanks for all input!
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
JayDub
I have a DataForm with a calculated field. In the calculated field, I would like to look up and Sum matching records in a View. I know that you can query a Table in a calculated field, and I have done this successfully. However, the value that I need is currently in a View. When I create the query in the calculated field using the name of a View, I get an Invalid Formula error. I am trying to use a View instead of a table because there is not a direct relationship between the current table the DataForm is based on and the Table the value I need to Sum is in. I have to relate both tables via a third 'join' table to get it
If, in fact, you can't query a View in a calculated field, is it possible to create a query in a Calculated field that joins multiple tables together (I'm guessing no - all of the examples of queries in calculated fields I've seen are simple SELECTs on one table.) Thanks for all input!
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.