A
av
Hi,
I'm having a problem with an unbound combo box, that is
used to look up the name of an organization. One of the
organizations has a single quote in its name, and this is
giving me an error. I have the following code for the
combo box:
Private Sub cboProgram_frmProgram_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ProgramName] = '" & Me!
[cboProgram_frmProgram] & "'"
Me.Bookmark = rs.Bookmark
End Sub
The name of the Organization is "Women's Health". I
believe the single quote (') in the name is causing the
error. How can I fix this?
Thanks!
~~av
I'm having a problem with an unbound combo box, that is
used to look up the name of an organization. One of the
organizations has a single quote in its name, and this is
giving me an error. I have the following code for the
combo box:
Private Sub cboProgram_frmProgram_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ProgramName] = '" & Me!
[cboProgram_frmProgram] & "'"
Me.Bookmark = rs.Bookmark
End Sub
The name of the Organization is "Women's Health". I
believe the single quote (') in the name is causing the
error. How can I fix this?
Thanks!
~~av