<ufgator1978@yahoo.com> schrieb[color=blue]
> Hi All,
>
> First off I'd like to mention that I know this should be done in
> ADO.NET, but I have been asked to do it in regular ADO. =( Having
> said that, here is the problem I am experiencing...
>
> I'm working with VB.NET and I have a recordset and I am trying to
> set a filter on it. I am getting an error that says "Arguments are
> of the wrong type, are out of acceptable range, or are in conflict
> with one another." Here is the code I am using:
>
> Dim rs As ADODB.Recordset
> rs = GetRecordset("SELECT * FROM Test", adUseClient, adLockReadOnly,
> adOpenStatic, GetMainConn, True)
> rs.Filter = "test"[/color]
"test" what? Filter needs an expression, like "name = 'miller'".
http://msdn.microsoft.com/library/en...dprofilter.asp
[color=blue]
> I checked the filter immediately after I get the recordset and I
> notice that the filter has a value of 0 {Integer}. I also verified
> that the rs has the correct number of records. Can anyone help me
> with this error???
>
> Many thanks...[/color]
Armin