Beaver
09-19-2008, 02:13 PM
Newbie here!
I learned access and programming in school, but have since forgotten it. I have data imported into my Access database every day. There are 4 queries on a form within that database that the guys use depending on what metal type they are currently working with. The majority of this imported data is chemistry information, 19 elements in all. If the numbers are within tolerance for a specific metal lot, it is released etc.
My question IS:
How would I write code (probably a series of if then statements) that starts at metal lot 41745 and looks at the output for oxygen, if it is within tolerance, it moves to iron and so on. If all 7 elements are met, I want the output to be 6-4. If 5 of 7 are met(depending on the elements) , I want output to be 1299A and so on for each metal lot.
Any information or direction would be greatly appreciated! Thanks.
I learned access and programming in school, but have since forgotten it. I have data imported into my Access database every day. There are 4 queries on a form within that database that the guys use depending on what metal type they are currently working with. The majority of this imported data is chemistry information, 19 elements in all. If the numbers are within tolerance for a specific metal lot, it is released etc.
My question IS:
How would I write code (probably a series of if then statements) that starts at metal lot 41745 and looks at the output for oxygen, if it is within tolerance, it moves to iron and so on. If all 7 elements are met, I want the output to be 6-4. If 5 of 7 are met(depending on the elements) , I want output to be 1299A and so on for each metal lot.
Any information or direction would be greatly appreciated! Thanks.