A reply to a previous post got me so much closer to my goal, but I'm not quite there.
The project is to create an estimate. I have an estimate main table, and a table for line items for the estimate, and another for the Material data.
For various reasons we want to save the current cost, labor rate etc. for each material selected in the estimate line items
table-Estimate Item Detail
Fields (partial list)
EID-Material (number)
EID-Description (text)
EID-MatCost (currency)
EID-MatLabor (number)
table-Materials
Material-ID (number - linked to EID-Material)
Material-Desc (text)
Material-Cost (currency)
Material-Labor (number)
I've created a combo box on my estimate line item subform to select the Material number. I can save the Material-ID into the EID-Material field via the selections made when creating the combo box. I can display the Description, Cost and Labor values on the subform via the "=cmbMaterialID.column(x)" method. I've tried using an After Update event on the combo box properties to store the values for Description, Cost and Labor into the EID fields but so far have had no luck. I use the syntax:
Me![EID-Description] = Me![cmbMaterialID].column(1)
Me![EID-MatCost] = Me![cmbMaterialID].column(2)
Me![EID-MatLabor] = Me![cmbMaterialID].column(3)
the SQL select selected Material-ID, Material-Desc, Material-Cost, Material-Labor.
Any help or ideas would be appreciated.
The project is to create an estimate. I have an estimate main table, and a table for line items for the estimate, and another for the Material data.
For various reasons we want to save the current cost, labor rate etc. for each material selected in the estimate line items
table-Estimate Item Detail
Fields (partial list)
EID-Material (number)
EID-Description (text)
EID-MatCost (currency)
EID-MatLabor (number)
table-Materials
Material-ID (number - linked to EID-Material)
Material-Desc (text)
Material-Cost (currency)
Material-Labor (number)
I've created a combo box on my estimate line item subform to select the Material number. I can save the Material-ID into the EID-Material field via the selections made when creating the combo box. I can display the Description, Cost and Labor values on the subform via the "=cmbMaterialID.column(x)" method. I've tried using an After Update event on the combo box properties to store the values for Description, Cost and Labor into the EID fields but so far have had no luck. I use the syntax:
Me![EID-Description] = Me![cmbMaterialID].column(1)
Me![EID-MatCost] = Me![cmbMaterialID].column(2)
Me![EID-MatLabor] = Me![cmbMaterialID].column(3)
the SQL select selected Material-ID, Material-Desc, Material-Cost, Material-Labor.
Any help or ideas would be appreciated.