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


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?
 
Ad

Advertisements

J

JHB

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"))?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top