I would like to verify if the value of a specific variable (oLookFullName) exist in this recordset and if it isn't the case I would like to print a message, so I tried this:
rs.MoveFirst
filter2 = "[Nom] = " & oLookFullName
rs.Find filter2
If (rs.BOF = True) Or (rs.EOF = True) Then
Debug.Print oLookFullName & " is not find"
End If
But I have this error at the line rs.Find filter2
:
Run-time error 3001 Arguments are of the wrong type or out of acceptable range or are in conflict with one another.