N
Nika
My combo box doesn't search last names with apostrophe in Access 2007. I have
the following code. Please see below. Can somebody help me?
Thanks.
Private Sub Combo384_AfterUpdate()
Dim rs As DAO.Recordset
Dim strWhere As String
If Me.Dirty Then Me.Dirty = False
Set rs = Me.RecordsetClone
strWhere = "[LAST NAME] = """ & Me![Combo384] & """"
rs.FindFirst strWhere
If rs.NoMatch Then
MsgBox "Not found"
Else
Me.Bookmark = rs.Bookmark
End If
Set rs = Nothing
End Sub
the following code. Please see below. Can somebody help me?
Thanks.
Private Sub Combo384_AfterUpdate()
Dim rs As DAO.Recordset
Dim strWhere As String
If Me.Dirty Then Me.Dirty = False
Set rs = Me.RecordsetClone
strWhere = "[LAST NAME] = """ & Me![Combo384] & """"
rs.FindFirst strWhere
If rs.NoMatch Then
MsgBox "Not found"
Else
Me.Bookmark = rs.Bookmark
End If
Set rs = Nothing
End Sub