Hi
I have an issue using the IN clause, need help.
I'm expecting to get this
SELECT * FROM [Product] WHERE [ProductID] IN (2640,2638,2639,2633,5094)
But I get this
SELECT * FROM [Product] WHERE [ProductID] IN ('2640,2638,2639,2633,5094')
which returns this error
Conversion failed when converting the varchar value '2640,2638,2639,2633,5094' to data type int.
here is the code
Dim prodColl As New ProductCollection
prodColl.Query.Where(prodColl.Query.ProductID.In(sfProd.RelatedProducts))
prodColl.Query.Load()
BTW the value of sfProd.RelatedProducts is "2639,2638,2640"
Thanks
Jaime (Cano) Noriega
Jaime (Cano) Noriega