Hi All,
I have attached my database to this forum in the help some people might be able to help me play around with the relationships so that I can get this to work.
The table Structure goes like this:
Jobs
|
Samples ----------------
| |
Test Groups - Results
|
Test Analytes
From the Jobs page you can pick the company the job is for, and the contact for that company, but I can't seam to get the drop down box to only show the contacts that work for the selected company, could someone help with that one.
The second part is Where you pick the test groups for a sample, is it possible to have a table automatically generated that has space for the results for all the test analytes that would be there for that sample. What i mean is say the sample 1 has test group A, which has analytes A1, A2, A3, A4 when I click on the sample, how can I have a table open that has all of those when there is no table simple like that.
I know the design having test groups and test analytes seams quite convoluted, as having a results table that has test analyte and a test result, but the reason I did that was because I want to be able to dynamically generate new tests in the system and new test groups so that it can be used by any section.
The only other thing, is If i have a parent sample, and child samples under that (all in the sample table) how can I have the system calculate a result based on the values of the parent and sample fields.
The example i use is TVOC, in this case there are a few calculations if the parent sample has testing for ACCS, then in that test group I have selected things like flow rate, sample size, chamber entry date, chamber exit date, and then there are lots of sub samples which might be a TVOC sample which would have the analyte TVOC, as well as the flow rate for that sample, what I want to be able to do is have a results table entry which takes the values from the calculations (eg Parent sample Flow Rate * Parent Sample Surface Area * Child Sample Flow Rate / Child Sample TVOC)
And is there any way in the test analytes table, I could have a setting to allow that to be a calculation in the results page, and create new calculations in a field and put it in the parent test group to use the child values for a parent calculation.
Sorry if it seams very round about way of explaining it, it seams quite a bad explaination but I hope someone can help
The Summary Points:
1. Jobs field shows client company, but does not limit the client contact to the client company staff members.
2. How to get a table to be generated for sample's analyte results, that is a sample has group a set, and group a has 12345 analytes, so a results table (which has sampleID, Result Name, ResultValue) is generated.
3. How to use test result values for samples (and child samples) to generate a semi-complex calculation. For example take parent sample's surface area, and chamber flow, and then use those with the child samples flow rate, and TVOC values to generate a final result for the parent sample and be able to put calculations as results, as linked through test value.
I am no means set on the design, rather than a lot of the values are important, and I want to keep test groups and analytes, and have a table that lets me easily enter a value to a sample and test type.
Hope that makes sense.
Thanks for any help.
I have attached my database to this forum in the help some people might be able to help me play around with the relationships so that I can get this to work.
The table Structure goes like this:
Jobs
|
Samples ----------------
| |
Test Groups - Results
|
Test Analytes
From the Jobs page you can pick the company the job is for, and the contact for that company, but I can't seam to get the drop down box to only show the contacts that work for the selected company, could someone help with that one.
The second part is Where you pick the test groups for a sample, is it possible to have a table automatically generated that has space for the results for all the test analytes that would be there for that sample. What i mean is say the sample 1 has test group A, which has analytes A1, A2, A3, A4 when I click on the sample, how can I have a table open that has all of those when there is no table simple like that.
I know the design having test groups and test analytes seams quite convoluted, as having a results table that has test analyte and a test result, but the reason I did that was because I want to be able to dynamically generate new tests in the system and new test groups so that it can be used by any section.
The only other thing, is If i have a parent sample, and child samples under that (all in the sample table) how can I have the system calculate a result based on the values of the parent and sample fields.
The example i use is TVOC, in this case there are a few calculations if the parent sample has testing for ACCS, then in that test group I have selected things like flow rate, sample size, chamber entry date, chamber exit date, and then there are lots of sub samples which might be a TVOC sample which would have the analyte TVOC, as well as the flow rate for that sample, what I want to be able to do is have a results table entry which takes the values from the calculations (eg Parent sample Flow Rate * Parent Sample Surface Area * Child Sample Flow Rate / Child Sample TVOC)
And is there any way in the test analytes table, I could have a setting to allow that to be a calculation in the results page, and create new calculations in a field and put it in the parent test group to use the child values for a parent calculation.
Sorry if it seams very round about way of explaining it, it seams quite a bad explaination but I hope someone can help
The Summary Points:
1. Jobs field shows client company, but does not limit the client contact to the client company staff members.
2. How to get a table to be generated for sample's analyte results, that is a sample has group a set, and group a has 12345 analytes, so a results table (which has sampleID, Result Name, ResultValue) is generated.
3. How to use test result values for samples (and child samples) to generate a semi-complex calculation. For example take parent sample's surface area, and chamber flow, and then use those with the child samples flow rate, and TVOC values to generate a final result for the parent sample and be able to put calculations as results, as linked through test value.
I am no means set on the design, rather than a lot of the values are important, and I want to keep test groups and analytes, and have a table that lets me easily enter a value to a sample and test type.
Hope that makes sense.
Thanks for any help.