CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Search

  1. #1
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Search

    Hello, I've included a seacrh button on my form, the problem is that:
    I do a search, then I want to edit the found record, but vb keeps telling me Field not updateable, bound property (something like that)
    On the form I didn't include Delete, Add or Edit buttons.
    Can somebody help¿


    F. T. W.

  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Search

    My guess is thazt the controls are bound to a datasource (could be a datacontrol, could be a recordset). The thing that's happening is that the uncerlying field (or perhaps the entire recordset) cannot be updated.
    You might not have added the buttons for it, but when you change the value of a bound control, the datasource will automatically be updated (or at least, it will try).

    Make sure you use another (unboiund) control to take the search criteria.
    If you do need to change the data at that point, try finding out why you cannot update the data (could be because the recordset is opened read-only, or because you are trying to update an autonumber column, or something like that)

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

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

Featured