R
ryguy7272
My code is below:
Private Sub cboCombo_AfterUpdate(Cancel As Integer)
Me.txtTextBox1 = Me.cboCombo.Column(1)
Me.txtTextBox3 = Me.cboCombo.Column(3)
Me.txtTextBox4 = Me.cboCombo.Column(4)
Me.txtTextBox5 = Me.cboCombo.Column(5)
Me.txtTextBox6 = Me.cboCombo.Column(6)
Me.txtTextBox7 = Me.cboCombo.Column(7)
Me.txtTextBox8 = Me.cboCombo.Column(8)
Me.txtTextBox9 = Me.cboCombo.Column(9)
Me.txtTextBox11 = Me.cboCombo.Column(11)
Me.txtTextBox12 = Me.cboCombo.Column(12)
Me.Query1.Requery
End Sub
The Error message reads: ‘The expression After Update you entered as the
event property setting produced the following error: Procedure declaration
does not match description of event or procedure having the same name.’
I have 10 TextBoxes on a Form. I’m trying to update values in each textbox,
by means of a ComboBox AfterUpdate event. What am I doing wrong?
Thanks,
Ryan---
Private Sub cboCombo_AfterUpdate(Cancel As Integer)
Me.txtTextBox1 = Me.cboCombo.Column(1)
Me.txtTextBox3 = Me.cboCombo.Column(3)
Me.txtTextBox4 = Me.cboCombo.Column(4)
Me.txtTextBox5 = Me.cboCombo.Column(5)
Me.txtTextBox6 = Me.cboCombo.Column(6)
Me.txtTextBox7 = Me.cboCombo.Column(7)
Me.txtTextBox8 = Me.cboCombo.Column(8)
Me.txtTextBox9 = Me.cboCombo.Column(9)
Me.txtTextBox11 = Me.cboCombo.Column(11)
Me.txtTextBox12 = Me.cboCombo.Column(12)
Me.Query1.Requery
End Sub
The Error message reads: ‘The expression After Update you entered as the
event property setting produced the following error: Procedure declaration
does not match description of event or procedure having the same name.’
I have 10 TextBoxes on a Form. I’m trying to update values in each textbox,
by means of a ComboBox AfterUpdate event. What am I doing wrong?
Thanks,
Ryan---