-
1 Attachment(s)
Error in filter
I am working on an aplication that has a filter.
there is a combobox to choose the filter options. and a button is clicked to show the data. the filter only works the first time you choose the option. but after that when you want to choose another option you get a error message.
enclosed is the error message that we are recieving, and a copy of the code for the click event of that button.
-
1 Attachment(s)
this is the erroe message that we got?!...
-
Code:
bndTemp = New Binding("Text", dataset, "PlayerInfo.fldFName")
Me.txtName.DataBindings.Add(bndTemp)
bndTemp = New Binding("Text", dataset, "PlayerInfo.fldLName")
Me.txtSurname.DataBindings.Add(bndTemp)
Your binding "PlayerInfo.fldLName" to two different textboxes in your sample code, thats where your error is coming form.
How to fix this? Not sure on what exactly your trying to do.
-
Well if you look at the code carefully you will see that those 2 different fields, they are connected to two different text boxes..
First field is fldFName and the second is fldLname. And the text boxes are name and surname.
-
Oops sorry didnt look close enough I guess:eek:
-