Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. updating error using oledbcommandbuilder

updating error using oledbcommandbuilder

Scheduled Pinned Locked Moved C#
helpannouncement
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    ginji20
    wrote on last edited by
    #1

    hello!!! could someone tell me what's the problem with my code.. i got this code from www.homeandlearn.co.uk.. I got some error when I edited the records on drow2[1] it says<code>syntax error in update statement</code> <code> //for update System.Data.Oledb.OledbCommandBuilder cb; cb = new System.Data.Oledb.OledbCommandBuilder(da); System.Data.DataRow drow2 = ds1.Tables["login"].Rows[inc]; drow2[0] =textbox1.Text; drow2[1] =textbox2.Text; d.Update(ds1,"login"); </code> thanks; Ginji Amano

    C 1 Reply Last reply
    0
    • G ginji20

      hello!!! could someone tell me what's the problem with my code.. i got this code from www.homeandlearn.co.uk.. I got some error when I edited the records on drow2[1] it says<code>syntax error in update statement</code> <code> //for update System.Data.Oledb.OledbCommandBuilder cb; cb = new System.Data.Oledb.OledbCommandBuilder(da); System.Data.DataRow drow2 = ds1.Tables["login"].Rows[inc]; drow2[0] =textbox1.Text; drow2[1] =textbox2.Text; d.Update(ds1,"login"); </code> thanks; Ginji Amano

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I don't see an update statement.

      Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      G 1 Reply Last reply
      0
      • C Christian Graus

        I don't see an update statement.

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        G Offline
        G Offline
        ginji20
        wrote on last edited by
        #3

        d.update(ds1,"login") actually its da.updte(ds1,"login"); this is all it need to update according to the tutorial

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups