I'm using this code to find records by last name in my form. It works great until I discovered if I have 2 people named "Jones" it will only return one of these records. Any ideas what I can insert here to solve this?
Dim MyName As DAO.Recordset
Set MyName = Me.RecordsetClone
MyName.FindFirst "[Last Name] = '" & Me.qlastname & "'"
If MyName.NoMatch Then
MsgBox "Name Not Found"
Else
Me.Bookmark = MyName.Bookmark
End If
Thanks!
Ebizleads
Dim MyName As DAO.Recordset
Set MyName = Me.RecordsetClone
MyName.FindFirst "[Last Name] = '" & Me.qlastname & "'"
If MyName.NoMatch Then
MsgBox "Name Not Found"
Else
Me.Bookmark = MyName.Bookmark
End If
Thanks!
Ebizleads