Can I pass a parameter into a query using code
i have tried with this approach....
PUBLIC FUNCTION SomeCriterea() as string
SomeCriterea = "In('A',B','C')"
end FUNCTION
...and then in the criterea section of a query
SomeCriterea() (hoping this would put In('A',B','C') into the
criterea field
but it doesnt work ... however if i make the functions code
SomeCriterea = "='A'"
it works.
p.s. I really need it to be an IN statement as i am entering in many values to search on.
Thanks
i have tried with this approach....
PUBLIC FUNCTION SomeCriterea() as string
SomeCriterea = "In('A',B','C')"
end FUNCTION
...and then in the criterea section of a query
SomeCriterea() (hoping this would put In('A',B','C') into the
criterea field
but it doesnt work ... however if i make the functions code
SomeCriterea = "='A'"
it works.
p.s. I really need it to be an IN statement as i am entering in many values to search on.
Thanks