I want to make a comparison calculation on the same field in the same table but on different records in the table.
The specific table is a child table in a set and the links are working as they are supposed to work. The child table has the following fields
The Sales_Type field is a DDB with a variety of choices including but not limited to these
On a form I want to place two embedded browse. One browse querries the child table for Sales_Year based on a variable Year1 and the second browse queries the same table based on a second variable Year2. Thanks to Tom Cone Jr I have the browses working fine.
What I want to accomplish is show the difference in Sales_Result in browse1 as compared to browse2. These browses would show identical fields from the table but for different years. The Sales_Result information would be in the same order in each browse as well as all the same Sales_Type in each browse. My first thought is these would be separate calculated fields on the form.
Does anyone have any suggestions on how to accomplish this? This may be way over my head since I am a user of Action Scripting versus Xbasic. I also am thinking my setup of the child table is not right for what I want to do. Perhaps another table setup is more appropriate????
If additonal information is need please let me know as I was not sure how to really explain my need.
Thanks
The specific table is a child table in a set and the links are working as they are supposed to work. The child table has the following fields
Agent_Id (C)
Sales_Year (C)
Sales_Type (C)
Sales_Result (N)
Sales_Year (C)
Sales_Type (C)
Sales_Result (N)
The Sales_Type field is a DDB with a variety of choices including but not limited to these
Auto New Business
Fire New Business
Auto PIF
Fire PIF
LLR
Retention
Fire New Business
Auto PIF
Fire PIF
LLR
Retention
On a form I want to place two embedded browse. One browse querries the child table for Sales_Year based on a variable Year1 and the second browse queries the same table based on a second variable Year2. Thanks to Tom Cone Jr I have the browses working fine.
What I want to accomplish is show the difference in Sales_Result in browse1 as compared to browse2. These browses would show identical fields from the table but for different years. The Sales_Result information would be in the same order in each browse as well as all the same Sales_Type in each browse. My first thought is these would be separate calculated fields on the form.
Does anyone have any suggestions on how to accomplish this? This may be way over my head since I am a user of Action Scripting versus Xbasic. I also am thinking my setup of the child table is not right for what I want to do. Perhaps another table setup is more appropriate????
If additonal information is need please let me know as I was not sure how to really explain my need.
Thanks
Comment