I have a customer who uses an apostrophe in their name.
Below is my On Event and On GotFocus vba for my lookup combo. It works. however, not for this 1 customer named EG .... Wilson's Battery.
Is there a way to fix this?
Thanks. Molly
----------------------------------------------
Private Sub CboAccountNameFilter_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[AccountName] = '" & Me![CboAccountNameFilter] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me.CboAccountNameFilter = Null
End Sub
-------------------------------------------------------
Private Sub CboAccountNameFilter_GotFocus()
Me.Refresh
End Sub
---------------------------------------------------
Below is my On Event and On GotFocus vba for my lookup combo. It works. however, not for this 1 customer named EG .... Wilson's Battery.
Is there a way to fix this?
Thanks. Molly
----------------------------------------------
Private Sub CboAccountNameFilter_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[AccountName] = '" & Me![CboAccountNameFilter] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me.CboAccountNameFilter = Null
End Sub
-------------------------------------------------------
Private Sub CboAccountNameFilter_GotFocus()
Me.Refresh
End Sub
---------------------------------------------------