George Posted August 7, 2002 Posted August 7, 2002 I have a one to many job_header to job_items. I have a field setup in the job_items db called 'category' which is either P, L or O. I have a calc field of: If(Job Header to items::CATEGORY="L",Sum(Job Header to items::CHARGES)*.6,0) and also If(Job Header to items::CATEGORY="P",Sum(Job Header to items::CHARGES)*.35,0) I finally add these two calc fields together with: tot_com=L_com+P_com to display the total of the fields in the portal out on the form. Problem is that the calc is ignoring the condition of testing the value of CATEGORY. Any help appreciated.
Geeksharka Posted August 7, 2002 Posted August 7, 2002 You will need a separate relation set up for each category variable. They are in essence hardwired. Then, create Sum fields in Jobs based on each different relation, and add those up.
Recommended Posts
This topic is 8145 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now