A
Arvin Meyer
You can insert the value into the table, or, if the subform is bound to the
table, simply read the combo box columns into the form's textboxes. The
example assumes that the combo is also on the subform, if it isn't, you'll
need to adjust the syntax (aircode):
Sub MyCombo_AfterUpdate()
Me.ControlName1 = Me.MyCombo.Column(0)
Me.ControlName2 = Me.MyCombo.Column(1)
Me.ControlName3 = Me.MyCombo.Column(2)
End Sub
As you can see, the column index is zero based. If the combo is NOT on the
subform, the code will be something like:
Me!NameOFSubformControl.Form!ControlName2 = Me.MyCombo.Column(1)
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
table, simply read the combo box columns into the form's textboxes. The
example assumes that the combo is also on the subform, if it isn't, you'll
need to adjust the syntax (aircode):
Sub MyCombo_AfterUpdate()
Me.ControlName1 = Me.MyCombo.Column(0)
Me.ControlName2 = Me.MyCombo.Column(1)
Me.ControlName3 = Me.MyCombo.Column(2)
End Sub
As you can see, the column index is zero based. If the combo is NOT on the
subform, the code will be something like:
Me!NameOFSubformControl.Form!ControlName2 = Me.MyCombo.Column(1)
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access