I have a form for updating records in a details table. There is an unbound combo populated with the available records in the table. I have the following code in the AfterUpdate event of the combo.
When running the code always goes to the not found error. The variable is correct and the record is there so what asm I missing?
Thanks!
Code:
Private Sub cboTag_AfterUpdate()
'Move to appropriate record
Dim rs As DAO.Recordset
If Not IsNull(Me.cboTag) Then
'Save before move.
If Me.Dirty Then
Me.Dirty = False
End If
'Search in the clone set.
Set rs = Me.RecordsetClone
rs.FindFirst "Tag = '" & Me.cboTag & "'"
If rs.NoMatch Then
MsgBox "Tag Not found"
Else
'Display the found record in the form.
Me.Bookmark = rs.Bookmark
End If
Set rs = Nothing
End If
Thanks!
Comment