B
BobRoyAce
Let's say I have a function in a global module called
GetNames (which returns something like 'ARM','CAT') and I
want to run a query like the following:
SELECT *
FROM TableA
WHERE Name IN (NAMELIST)
where NAMELIST is filled in with value returned by
GetNames function. Am I correct in assuming that the
syntax would be
SELECT *
FROM TableA
WHERE Name IN (GetNames())
For some reason this does not seem to work...just want to
make sure I'm going about the right way.
GetNames (which returns something like 'ARM','CAT') and I
want to run a query like the following:
SELECT *
FROM TableA
WHERE Name IN (NAMELIST)
where NAMELIST is filled in with value returned by
GetNames function. Am I correct in assuming that the
syntax would be
SELECT *
FROM TableA
WHERE Name IN (GetNames())
For some reason this does not seem to work...just want to
make sure I'm going about the right way.