Yes, it is possible.
However, I don't think it's possible with WHERE IN (...)
.
Here is an example for a normal WHERE
query:
Public Function Test() As String
Test = "Smith"
End Function
...and then:
SELECT * FROM Users WHERE Name = Test();
It works, as long as the function only returns one value.
But I think it's not possible to let your function return something like "Smith, Miller" and use that like:
SELECT * FROM Users WHERE Name In (Test());
(at least I don't know how to do it)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…