Results 1 to 2 of 2

Thread: My databound Textboxes don't update the database..

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    Israel
    Posts
    23

    Unhappy

    This is frigging stupid. I suck at this data access stuff.
    But anyway, here... I've got this textbox, Text1 , and it is databound to an adodc connection. That connection works, and the textbox displays the data it is supposed to display as I go through the records.

    But I need to make that when this textbox gets a value (it gets passed from another textbox), that it will update the appropriate database field with the new value.

    How do I do this? I thought it was automatic with the databinding itself.

    Thanks.


  2. #2
    Addicted Member P.S.W.'s Avatar
    Join Date
    Aug 2000
    Posts
    146
    After changes have been made to the textbox, it has to be saved to your recordset:

    Adodc.Recordset.Update

    You can attach that code to a "save" button, put it in the lost_focus or validate event of the textbox, or elsewhere, but it needs to be done!


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