Apr 2nd, 2004, 09:42 AM
#1
Thread Starter
Junior Member
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.
Attached Files
Apr 2nd, 2004, 09:43 AM
#2
Thread Starter
Junior Member
this is the erroe message that we got?!...
Attached Images
Apr 2nd, 2004, 10:53 AM
#3
Addicted Member
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.
Apr 2nd, 2004, 11:26 AM
#4
Thread Starter
Junior Member
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.
Apr 2nd, 2004, 11:40 AM
#5
Addicted Member
Oops sorry didnt look close enough I guess
Apr 2nd, 2004, 06:20 PM
#6
Thread Starter
Junior Member
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width