Results 1 to 6 of 6

Thread: Error in filter

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2004
    Posts
    22

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

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Feb 2004
    Posts
    22
    this is the erroe message that we got?!...
    Attached Images Attached Images  

  3. #3
    Addicted Member Hole-In-One's Avatar
    Join Date
    Mar 2003
    Location
    Minnesota
    Posts
    195
    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.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Feb 2004
    Posts
    22
    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.

  5. #5
    Addicted Member Hole-In-One's Avatar
    Join Date
    Mar 2003
    Location
    Minnesota
    Posts
    195
    Oops sorry didnt look close enough I guess

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Feb 2004
    Posts
    22
    Anyone feel free to help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width