IN Operator in OLEDB

Santiago Redondo 1 Reputation point
2022-08-22T21:03:00.907+00:00

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
Developer technologies | Visual Basic for Applications
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.