Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27348

VS 2010 WHERE IN clause not working for multiple values in filtering tableadapter

$
0
0
Dears,

I am stuck in a strange issue; need your guidance to know where I am going wrong..

I want to filter records using
Code:

Where ioBatchID IN (@setOfRecords)
here
Code:

@setOfRecords
will be values like
Code:

('20121211152256','20121211152257','20121211152291','20121211152125')
it work well when i pass single value like '20121211152256' but when I try to pass multiple values like above it is not returning any rows. Though it works well same query when i run in MS SQL Management Studio ..

Below are details of my code and table adapter:

Attachment 94283

Code:

Me.viewOutwardDeliveryNoteTableAdapter.FillByCriteria(Me.dsOutwardDeliveryNote.viewOutwardDeliveryNote, strBatchNos)
Thanking you,

Best Regards,

Sam
Attached Images
 

Viewing all articles
Browse latest Browse all 27348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>