J
J.C.
I am using the following module to locate records:
---------------------------------------------------
Private Sub CFRecordLocatorCBP1_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[CF_Name] = '" & _
Me![CFRecordLocatorCBP1] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
---------------------------------------------------
It works well as long as there is no apostrophe in the Me!
[CFRecordLocatorCBP1] string. For obvious reasons, it
fails if there is one.
Has anyone discovered an easy/simple workaround?
jc
---------------------------------------------------
Private Sub CFRecordLocatorCBP1_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[CF_Name] = '" & _
Me![CFRecordLocatorCBP1] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
---------------------------------------------------
It works well as long as there is no apostrophe in the Me!
[CFRecordLocatorCBP1] string. For obvious reasons, it
fails if there is one.
Has anyone discovered an easy/simple workaround?
jc