Discussion:
Use In() Expression as Query criteria with guts from Function
(too old to reply)
Gert
2014-12-15 05:50:02 UTC
Permalink
I have a query where one of the fields use the In() expression to limit the results of my query.
This works perfectly when I enter the criteria manually i.e In(1;2;3).

I have created a Function where I build the guts of the the above dynamically as a string, and send it to the expression as follows:

The string from the Function called GetSkill() is: "1;2;3"
The Criteria in the query is: In(Eval(GetSkill()))

When I run the query it returns an error message "Unknown"

Any suggestions please?
JHB
2015-02-10 09:54:22 UTC
Permalink
Post by Gert
I have a query where one of the fields use the In() expression to limit the results of my query.
This works perfectly when I enter the criteria manually i.e In(1;2;3).
The string from the Function called GetSkill() is: "1;2;3"
The Criteria in the query is: In(Eval(GetSkill()))
When I run the query it returns an error message "Unknown"
Any suggestions please?
Only for diagnostic purposes, what happen if you have, In(Eval("1;2;3"))?
Loading...