Hi Shieldk
You could create a function to deal with Apostrophes and then call the function from your form.
Here is the Apostrophe function (not something I created ... so apologies to the actual author but I cannot remeber where I found it).
----------------------------------------------
Public Function Apostrophe(strSFieldString As String) As String
' Comments :
' Parameters : strSFieldString -
' Returns : String -
' Created :
' Modified :
'
' --------------------------------------------------------
On Error GoTo Err_Apostrophe
If InStr(strSFieldString, "'") Then
Dim intILen As Integer
Dim intIi As Integer
Dim intApostr As Integer
intILen = Len(strSFieldString)
intIi = 1
Do While intIi <= intILen
If Mid(strSFieldString, intIi, 1) = "'" Then
intApostr = intIi
strSFieldString = left(strSFieldString, intApostr) & "'" & _
right(strSFieldString, intILen - intApostr)
intILen = Len(strSFieldString)
intIi = intIi + 1
End If
intIi = intIi + 1
Loop
End If
Apostrophe = strSFieldString
Exit_Apostrophe:
Exit Function
Err_Apostrophe:
MsgBox Err.Description & _
" - (Error No:" & Err.Number & ")"
Resume Exit_Apostrophe
End Function
-----------------------------------------------
In your code you then call this public function eg.
Dim strCompanyName As String
strCompanyName = Apostrophe(Me![cboCompany])
Me.RecordsetClone.FindFirst "[Company] = '" & strCompanyName & "'"
HTH
Rich Gorvin