Jim,
I think you need to include quotes:
objRS.Filter = "contactname = '" + txtSearch.text + "'"
Additionally, your code looks like VB code. If this is in VFP, you need to use the + operator instead of & to concatenate strings.
HTH
>All,
>
>Below is code I am using to set the filter on a recordset. I am getting the following error and don't know why. The error is: run time error '3001': The application is using arguments that are the wrong type, are out of the acceptable range, or are in conflict with one another.
>
>Here is the code: objRS.Filter = "contactname = " & txtSearch.Text
>
>The contactname field is from a SQL Server Database and is type Char.
>
>Any ideas?
>
>Thanks
>
>Jim
Daniel