Hi
I'm applying a filter to a recordset (old from somebody else) using the rs.filter property
The columns all exists and this filter works:
rs.filter = "(Agent LIKE 'MIES%' OR [Air Agent] LIKE 'MIES%')"
This also works:
rs.filter = "(Agent LIKE 'MIES%' OR [Air Agent] LIKE 'MIES%') OR (Origin LIKE 'BangladhCR%')"
BUT this doesn't work:
rs.filter= "(Agent LIKE 'MIES%' OR [Air Agent] LIKE 'MIES%') AND (Origin LIKE 'BangladhCR%')"
Changing the OR to an AND generates the following error:
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
Thanks in advance.
I'm applying a filter to a recordset (old from somebody else) using the rs.filter property
The columns all exists and this filter works:
rs.filter = "(Agent LIKE 'MIES%' OR [Air Agent] LIKE 'MIES%')"
This also works:
rs.filter = "(Agent LIKE 'MIES%' OR [Air Agent] LIKE 'MIES%') OR (Origin LIKE 'BangladhCR%')"
BUT this doesn't work:
rs.filter= "(Agent LIKE 'MIES%' OR [Air Agent] LIKE 'MIES%') AND (Origin LIKE 'BangladhCR%')"
Changing the OR to an AND generates the following error:
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
Thanks in advance.