Good evening all, I hope you can help i've literally pulled my hair out on this one.
Please refer to the attached picture which is the best representation of how I want to use the database I have.
I have a form (frmMaterials) based on the table (tblMaterials) with various linked tables and comboboxes for selecting specific items, for instance, I have a combobox for 'material'. in this case SS316
On this same form I have two subforms.
On the left is a subform (sfrmMaterialsSetValues) based on a table (stblMaterialSetValues) linked to tblMaterials by way of the hidden ID of the material in the cmbMaterial combobox. tblMaterials has minimum and maximum values allowed for specific chemical and mechanical values of said material.
On the right is a subform (sfrmMaterialsData) based on a table (stblMaterialsData), linked to frmMaterials by way of the ID of the actual record.
As you can see this is at the moment little more than an idea on what the values 'should' be versus what you enter for any given record and this is what I would like to change.
What I am after, is when I select an Analysis in the sfrmMaterialsData, i.e. C, or CR, I would like the minimum and maximum values to appear (like in a calculated field) without the sfrmMaterialsSetValues subform on the left even having to be present. Ideally, I would also like a visual warning so that when a Value is outside of the set minimum and maximum where the Analysis selected matches an entry in the tblMaterialsSetValues where the MaterialID matches the cmbMaterial combobox on the main form.
I truly hope I haven't convoluted this explanation, but if anyone can assist it would be fantastic.
Kindest regards
inso
Please refer to the attached picture which is the best representation of how I want to use the database I have.
I have a form (frmMaterials) based on the table (tblMaterials) with various linked tables and comboboxes for selecting specific items, for instance, I have a combobox for 'material'. in this case SS316
On this same form I have two subforms.
On the left is a subform (sfrmMaterialsSetValues) based on a table (stblMaterialSetValues) linked to tblMaterials by way of the hidden ID of the material in the cmbMaterial combobox. tblMaterials has minimum and maximum values allowed for specific chemical and mechanical values of said material.
On the right is a subform (sfrmMaterialsData) based on a table (stblMaterialsData), linked to frmMaterials by way of the ID of the actual record.
As you can see this is at the moment little more than an idea on what the values 'should' be versus what you enter for any given record and this is what I would like to change.
What I am after, is when I select an Analysis in the sfrmMaterialsData, i.e. C, or CR, I would like the minimum and maximum values to appear (like in a calculated field) without the sfrmMaterialsSetValues subform on the left even having to be present. Ideally, I would also like a visual warning so that when a Value is outside of the set minimum and maximum where the Analysis selected matches an entry in the tblMaterialsSetValues where the MaterialID matches the cmbMaterial combobox on the main form.
I truly hope I haven't convoluted this explanation, but if anyone can assist it would be fantastic.
Kindest regards
inso