Ok, I have a recordset that I want to store in a session variable that will be filtered several different ways from one call to the next, and so this is my first shot at using the filter property for an ADO Recordset.
Can anyone please post some syntax for the following statement if I wanted to filter by say 'region' and 'propertyCode' (two fields in the recordset)?
Please correct me, because I know the above statement causes an error. I have the recordset as a client-side cursor opened static (of course), and a lockType of adLockBatchOptimistic.
Ok, please help. Thanks!
Paul Prewett
Can anyone please post some syntax for the following statement if I wanted to filter by say 'region' and 'propertyCode' (two fields in the recordset)?
Code:
rs.filter = "(region = 2) or (propertyCode = 5)"
Please correct me, because I know the above statement causes an error. I have the recordset as a client-side cursor opened static (of course), and a lockType of adLockBatchOptimistic.
Ok, please help. Thanks!
Paul Prewett