G
Guest
I created a combo box based on Name which is a field created by joining last name, first name as follows
Name: [Name-Last] & ", " & [Name-First
I am getting a Run-time error'3077' Syntax error (missing operator) in expression when I select a name with an ' like O'Brien. The combo box works fine for all other names.
The code created for this combo box is
Private Sub Combo56_AfterUpdate(
' Find the record that matches the control
Dim rs As Objec
Set rs = Me.Recordset.Clon
rs.FindFirst "[Name] = '" & Me![Combo56] & "'
If Not rs.EOF Then Me.Bookmark = rs.Bookmar
End Su
The error line is the rs.FindFirst "[Name] = '" & Me![Combo56] & "'
Any ideas on how to correct this?
Name: [Name-Last] & ", " & [Name-First
I am getting a Run-time error'3077' Syntax error (missing operator) in expression when I select a name with an ' like O'Brien. The combo box works fine for all other names.
The code created for this combo box is
Private Sub Combo56_AfterUpdate(
' Find the record that matches the control
Dim rs As Objec
Set rs = Me.Recordset.Clon
rs.FindFirst "[Name] = '" & Me![Combo56] & "'
If Not rs.EOF Then Me.Bookmark = rs.Bookmar
End Su
The error line is the rs.FindFirst "[Name] = '" & Me![Combo56] & "'
Any ideas on how to correct this?