G
Guest
I am trying to display field values from a combo box in a text box. This is
what I have done so far based on prior postings on this subject:
In combo box row souce I select the fields for the combo box; Select SPid,
SPfirst, SPlast, SPspec from SP
Bound column = 0
In the AfterUpdate event I entered the following code:
Private Sub SpID_AfterUpdate()
Me.FirstName = Me.SpID.Column(1)
End Sub
FirstName is the name of my text box.
In the Control Source property in my textbox I entered: =me.SpID.column(1)
When I open my form and select an item in my combo box I get a runtime error
that says "Can't assign a value to this object." When I click on Debug it
references the line" Me.FirstName = Me.SpID.Column(1)".
Any ideas on what am I doing wrong? Any help would be appreciated.
what I have done so far based on prior postings on this subject:
In combo box row souce I select the fields for the combo box; Select SPid,
SPfirst, SPlast, SPspec from SP
Bound column = 0
In the AfterUpdate event I entered the following code:
Private Sub SpID_AfterUpdate()
Me.FirstName = Me.SpID.Column(1)
End Sub
FirstName is the name of my text box.
In the Control Source property in my textbox I entered: =me.SpID.column(1)
When I open my form and select an item in my combo box I get a runtime error
that says "Can't assign a value to this object." When I click on Debug it
references the line" Me.FirstName = Me.SpID.Column(1)".
Any ideas on what am I doing wrong? Any help would be appreciated.