IN Operator in OLEDB
Santiago Redondo
1
Reputation point
I'm working with Excel and i cant get this to work:
SELECT * FROM [A] WHERE [Article_Name] IN ('A','B')
I dont know how to write it to make it work
This works for example: SELECT * FROM [A] WHERE ([Article_Name] = 'A') OR ([Article_Name] = 'B')
But i want to use the IN operator
Any help will be appreciated it, thanks!
Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Development | Other
Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
Developer technologies | Visual Basic for Applications
Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
Sign in to answer