Having problems when my combo lookup box comes across an apostrophe. below is my code.
Private Sub Combo11_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Guarantor] = '" & Me![Combo11] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
I have looked at previous posts where suggestions have me try to replace the ' with " and also the code that suggests placing replace in front of Me!. but no success.
Private Sub Combo11_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Guarantor] = '" & Me![Combo11] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
I have looked at previous posts where suggestions have me try to replace the ' with " and also the code that suggests placing replace in front of Me!. but no success.