A short while ago I was taught to use -
"Private Sub Combo24_AfterUpdate()
Me.Procedure ID = Me.Combo24.Column(1)
End Sub"
-to store a combo column in a field on a form (Update action). (This is the type of code I was shown and used. The code shown here is what I am trying to use.)
I now find my-self wanting to do this on a sub form.
The form name is "Procedures" The subform name is "Related Procedures tbl subform"
Combo24 on the subform contains many columns. On the Combo update action I want to fill in the rest of the fields on the sub form with the results of the combo box columns.
When I open the form and select the subform and select an item on the comb24 list it trys to update the field as shown in the example above....I get this message: "Compile error: Method or data member not found"
Do I have to further qualify my code because I am dealing with a subform?
Can anyone show me the code that might work for the example I showed above. The fields and form names are actually the ones I am using.
Thanks,
"Private Sub Combo24_AfterUpdate()
Me.Procedure ID = Me.Combo24.Column(1)
End Sub"
-to store a combo column in a field on a form (Update action). (This is the type of code I was shown and used. The code shown here is what I am trying to use.)
I now find my-self wanting to do this on a sub form.
The form name is "Procedures" The subform name is "Related Procedures tbl subform"
Combo24 on the subform contains many columns. On the Combo update action I want to fill in the rest of the fields on the sub form with the results of the combo box columns.
When I open the form and select the subform and select an item on the comb24 list it trys to update the field as shown in the example above....I get this message: "Compile error: Method or data member not found"
Do I have to further qualify my code because I am dealing with a subform?
Can anyone show me the code that might work for the example I showed above. The fields and form names are actually the ones I am using.
Thanks,