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