R
RichW
I have a form that has a combobox and several text boxes; all are linked to a
table.
When a user selects one of the items listed in the combobox, the text fields
then display the data associated with the item.
The combobox has the following code in its After Update event procedure:
Private Sub cboName_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ColumnName] = '" & Me![cboName] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Problem: When the form is first opened the combobox is blank, but the text
boxes display the data contained in the first row of the associated table.
How I want it to work: When the form is first opened, the combobox (like it
currently does) and all text boxes are blank.
All help is appreciated.
Thank you,
table.
When a user selects one of the items listed in the combobox, the text fields
then display the data associated with the item.
The combobox has the following code in its After Update event procedure:
Private Sub cboName_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ColumnName] = '" & Me![cboName] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Problem: When the form is first opened the combobox is blank, but the text
boxes display the data contained in the first row of the associated table.
How I want it to work: When the form is first opened, the combobox (like it
currently does) and all text boxes are blank.
All help is appreciated.
Thank you,