TheWennerWoman
Active Member
- Joined
- Aug 1, 2019
- Messages
- 270
- Office Version
- 365
- Platform
- Windows
Hello,
Hope someone can help.
I have a SQL view that I am calling from VBA. Something basic like
The view contains my qualifiers (so, for example, it contains a field called NominalCode) which has about forty values.
Instead of NominalCode being stored in the view, I've been asked to store it on a separate worksheet so that the users can add / delete nominal codes as necessary.
So my SQL code would now need to be something like
Has anyone done anything similar? Hope this makes sense
Hope someone can help.
I have a SQL view that I am calling from VBA. Something basic like
Code:
SELECT * FROM TheWennerWomans_View
The view contains my qualifiers (so, for example, it contains a field called NominalCode) which has about forty values.
Instead of NominalCode being stored in the view, I've been asked to store it on a separate worksheet so that the users can add / delete nominal codes as necessary.
So my SQL code would now need to be something like
Code:
SELECT * FROM TheWennerWomans_View WHERE NominalCode IN (SELECT NominalCode FROM Sheet1)
Has anyone done anything similar? Hope this makes sense