S
Song Su
I want to use combo box to locate a name. After update, the combo box shows
the name but the form does not move to the record of combobox. Here is my
code:
Private Sub cboLook_AfterUpdate()
Dim rs As DAO.Recordset
'Search in the clone set.
Set rs = Me.RecordsetClone
rs.FindFirst "[name]= """ & Me.cboLook & """"
'Display the found record in the form.
Me.Bookmark = rs.Bookmark
frmFlexSubform.SetFocus
Set rs = Nothing
End Sub
the name but the form does not move to the record of combobox. Here is my
code:
Private Sub cboLook_AfterUpdate()
Dim rs As DAO.Recordset
'Search in the clone set.
Set rs = Me.RecordsetClone
rs.FindFirst "[name]= """ & Me.cboLook & """"
'Display the found record in the form.
Me.Bookmark = rs.Bookmark
frmFlexSubform.SetFocus
Set rs = Nothing
End Sub