Forum Discussion
OldN00b
3 years agoFrequent Visitor
Pass through a list into a sql statement with parameter
I have a list from an existing query called "RiskDataSetID" which contains numerical values (i.e. 741,738,736....n). I created a parameter for this list and i am trying to implement it into the where statement of my sql query to try and limit the data i am pulling. I am running into an error which states "We cannot apply operator & to types Text and Number."
Here is the query i am trying to update using the parameter
select *
from db..databaseresults
where riskdatasetid in (RiskDataSetID parameter)
1 Reply
- talbotRegular Visitor
You need to wrap your parameter call in Text.From()