C
ChasW
I have a function that creates a custom list of values.
I want the values to be usable from a query such as this one.
SELECT *
FROM tbl
WHERE (((tbl.field) In ("value1", "value2")));
so of course i tried:
SELECT *
FROM tbl
WHERE (((tbl.field) In (myFunction())));
which of course only works for a list with 1 value in it, but if the
function returns a string such as 'A', 'B', 'C'
IN() still sees "'A', 'B', 'C'"
i.e. a single value
so.. what are my options here.
Can the function type be a table?
I dont really need to use IN, but I just showed that here as one of
the examples that I have tried and it didn't work.
I should mention that I saw this:
http://www.mvps.org/access/forms/frm0007.htm
It applies similarly to what I am trying to do, but it neglects to
show how to use the query with the function.
Any help would be appreciated.
Chas
I want the values to be usable from a query such as this one.
SELECT *
FROM tbl
WHERE (((tbl.field) In ("value1", "value2")));
so of course i tried:
SELECT *
FROM tbl
WHERE (((tbl.field) In (myFunction())));
which of course only works for a list with 1 value in it, but if the
function returns a string such as 'A', 'B', 'C'
IN() still sees "'A', 'B', 'C'"
i.e. a single value
so.. what are my options here.
Can the function type be a table?
I dont really need to use IN, but I just showed that here as one of
the examples that I have tried and it didn't work.
I should mention that I saw this:
http://www.mvps.org/access/forms/frm0007.htm
It applies similarly to what I am trying to do, but it neglects to
show how to use the query with the function.
Any help would be appreciated.
Chas