Use In() Expression as Query criteria with guts from Function

  • Thread starter Thread starter Gert
  • Start date Start date
G

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).

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?
 
Den 15-12-2014 06:50, Gert skrev:
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?
Only for diagnostic purposes, what happen if you have, In(Eval("1;2;3"))?
 
Back
Top