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

VS 2010 [RESOLVED] Parameterized TableAdapter Queries, Wildcard?

$
0
0
Hi,

I gave up again, so I came here ... again!

I have a Parameterized TableAdapter with three "OR" parameters, so I fill the datatable (X) with something like this:

Dim ID AS Integer = 1
Dim NAME AS String = "David"
Dim JOB AS String = "Doctor"
Me.XTableAdapter.Fill(Me.DS.X, ID, NAME, JOB)

This fills X with people whose ID is 1 OR whose name is David OR whose job is Doctor, but obviously it always fills X with the person whose ID is 1 because ID is Unique key and it's NOT optional argument in the Fill method here.

How can I make the parameters optional? or pass it as wildcard? For example, using this TableAdapter how can I get people no matter their ID is, no matter their Name is, but their job is Doctor?!

Thanks

Viewing all articles
Browse latest Browse all 27554

Trending Articles



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