Clipper4000
Programmer
I have a query which utilized the having clause like this:
Select ...
From ...
Group BY Account, ...
Having Account IN (1000, 2000, 3000)
This query worked.
What I want to be able to do is to use a function to return the values in the IN sub-clause. Could this be done in Access SQL?
I am assuming the items in the IN clause correspondent to an array. I can setup a function that will return me the array. However, I am having trouble calling the function in the IN clause.
I will be very much appreciated if anyone can point me to the correct calling syntax.
Select ...
From ...
Group BY Account, ...
Having Account IN (1000, 2000, 3000)
This query worked.
What I want to be able to do is to use a function to return the values in the IN sub-clause. Could this be done in Access SQL?
I am assuming the items in the IN clause correspondent to an array. I can setup a function that will return me the array. However, I am having trouble calling the function in the IN clause.
I will be very much appreciated if anyone can point me to the correct calling syntax.