Prattdakota
Vendor
Hello - I'm having an issue with a filter to a recordset in my code. When I try to ensure the correct precedence by adding parenthesis I get an error. For example:
The following line works fine:
However, the following line of code, which is the same except for two parenthesis being removed, produces an error stating "Arguements are of the wrong type, are out of acceptable range, or are in conflict with one another"
Seems odd to me that just forcing the precedence should have this effect. I'm out of ideas. If you have an idea for me to try I'd appreciate your insight.
Thanks
The following line works fine:
Code:
.Filter = "TransPostFiscalYear = " & intFiscalYear & " AND (TransactionCode = 'ASST SURGEON') OR (TransactionCode = 'ATTENDNOTP')"
However, the following line of code, which is the same except for two parenthesis being removed, produces an error stating "Arguements are of the wrong type, are out of acceptable range, or are in conflict with one another"
Code:
.Filter = "TransPostFiscalYear = " & intFiscalYear & " AND (TransactionCode = 'ASST SURGEON' OR TransactionCode = 'ATTENDNOTP')"
Seems odd to me that just forcing the precedence should have this effect. I'm out of ideas. If you have an idea for me to try I'd appreciate your insight.
Thanks