Hi,
I dont seem to be able to get this Filter right on my RecordSet for
some reason.
I have this code:
Dim rs As Recordset
Set rs = CurrentDb().OpenRecordset("SELECT DISTINCT Product,
Component, Attribute, [Attribute Value], [Attribute Type], [Charge
Type] " & _
"FROM [Tbl_Product_VAS] " & _
"[Attribute Type] <'Feature' "
& _
"ORDER BY [Component]",
dbOpenDynaset)
this record set is different to something like this for instance.
Dim rs As Recordset
Set rs = CurrentDb().OpenRecordset("SELECT DISTINCT Product,
Component, Attribute, [Attribute Value], [Attribute Type], [Charge
Type] " & _
"FROM [Tbl_Product_VAS] " & _
"ORDER BY [Component]",
dbOpenDynaset)
rs.Filter = "[Attribute Type] <'Feature'"
The first one is getting the correct results, but the second one isn't.
but I need the feature to be able to filter out criterias as I go along
when I find out more and more information, and I cannot keep updating
the original SQL.
Any ideas?
Thanks.