I'm trying to getting some calculations done, based on values in some combo boxes.
I have three silos/tanks, where the contents can be either something called "Barite" or "Bentonite. The content of each specific silo is chosen in a combo box, and the weight of each, is entered into a corresponding text box.
Finally there are two "total" text boxes. One is for total amount of "Barite" and the other one is for the to´tal amount of "Bentonite".
I'd appreciate some ideas how to put this together. I thought of something like this:
But as there are quite a lot of various possibilities, then I assume that this might not be the best solution. In stead I hope that some of you pro's can give me some pointers.
I have attached a screenshot of the setup, which hopefully will give an understandig of what I'm looking fore.
/Anders
I have three silos/tanks, where the contents can be either something called "Barite" or "Bentonite. The content of each specific silo is chosen in a combo box, and the weight of each, is entered into a corresponding text box.
Finally there are two "total" text boxes. One is for total amount of "Barite" and the other one is for the to´tal amount of "Bentonite".
I'd appreciate some ideas how to put this together. I thought of something like this:
Code:
IF me.contentA = "Barite" AND me.contentB = "Barite" AND me.contentC = "Barite" THEN ...... ELSEIF ........
But as there are quite a lot of various possibilities, then I assume that this might not be the best solution. In stead I hope that some of you pro's can give me some pointers.
I have attached a screenshot of the setup, which hopefully will give an understandig of what I'm looking fore.
/Anders