Results 1 to 8 of 8

Thread: how do u update a record using a textbox?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    New Zealand
    Posts
    268

    how do u update a record using a textbox?

    hello, i have a bunch of textboxes with datasource set to my adodc, and datafields, i can write in the textboxes over what is showing from my database, but it doesnt effect the database.

    How can i make changes to the textboxes automatically update the database as well?

    Thanks for your help
    Ang

  2. #2
    Fanatic Member
    Join Date
    Aug 2001
    Location
    Connecticut
    Posts
    855
    (Assuming locktype is not readonly)
    You have to issue an adodc1.Recordset.Update command somewhere. Unless you movenext which automatically updates.
    VB 6.0, Access, Sql server, Asp

  3. #3
    Devioux
    Guest
    i would go with that

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    New Zealand
    Posts
    268
    ooh that's perfect

    cheers matey
    Ang

  5. #5
    Devioux
    Guest
    your welcome
    anytime the

    did i see your name was Ang, as in Angela?

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    New Zealand
    Posts
    268
    yes

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    New Zealand
    Posts
    268
    i cant get the update to work
    i have dis button, but i click it, then go back to see if it's work, and the changes havent been saved, any ideas why?


    Private Sub cmdBack_Click()

    adoProduce.Recordset.Update
    DoEvents

    Unload frmUpdateProduce
    frmDatabases.Show 1

    End Sub


    thanks again
    Ang

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    New Zealand
    Posts
    268

    ooops

    what the hell am i talking about! yes it does

    sorry ignore my last post, it just didnt work the 1st time, it's ok now

    thanks all the same
    Ang

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