
Originally Posted by
dgriffin
I've attached the file. Maybe I'm not explaining myself right. I hope this will help. Thank you.
Hi, I have studied your form, its very simple and clear. For saving the combo data to your fields on form is very simple:
see this code:
Code:
Private Sub ProductNo_Combo_AfterUpdate()
Me.ProductName = [ProductNo_Combo].[Column](1)
Me.FACTOR = [ProductNo_Combo].[Column](2)
End Sub
What it does? This code is just populating your fields (ProductName and FACTOR) on the form on ProductNo_Combo_AfterUpdate event.
On your form you have these field, but with the Control Source Set to = [ProductNo_Combo].[Column](1) and = [ProductNo_Combo].[Column](2) respectively.
Remove this control source from both the fields and Select the ProductName and FACTOR fields from the Control Source (the field names of your form from the underlying table - the source table of the form)
On AfterUpdate Event of the combo box, these will be filled automatically this time with the columns of the combox and will save to the table.
Hope you got the clue:
I have Access-2010 which is not compatible with your attached db, I have converted your db in higher version and become useless for you to open. so try just what I said and analyse the data in your table for saving.
hth.