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. .NET (Core and Framework)
  4. Edit mode in oledb connection

Edit mode in oledb connection

Scheduled Pinned Locked Moved .NET (Core and Framework)
database
6 Posts 3 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.
  • A Offline
    A Offline
    akosidandan
    wrote on last edited by
    #1

    Hello, I would like to ask if how will I edit existing database records like the edit mode. Any suggestion or comments are kindly appreciated. Thanks, dfan23

    N 1 Reply Last reply
    0
    • A akosidandan

      Hello, I would like to ask if how will I edit existing database records like the edit mode. Any suggestion or comments are kindly appreciated. Thanks, dfan23

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Are you serious? A very cursory search will turn up many results. Have you tried that?


      I know the language. I've read a book. - _Madmatt

      A N 2 Replies Last reply
      0
      • N Not Active

        Are you serious? A very cursory search will turn up many results. Have you tried that?


        I know the language. I've read a book. - _Madmatt

        A Offline
        A Offline
        akosidandan
        wrote on last edited by
        #3

        Hello, Sorry for bothering you but I am just asking. This is a forum and I just post so that I can get idea's.

        N 1 Reply Last reply
        0
        • A akosidandan

          Hello, Sorry for bothering you but I am just asking. This is a forum and I just post so that I can get idea's.

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          It is expected that one does some research first. Even a modicum of such research would have yielded you a plethora of resources to answer the question yourself and perhaps learn in the process. Not doing any research and expecting to be given the answers is a waste of everyone's time and disrespectful to those who freely give their time here.


          I know the language. I've read a book. - _Madmatt

          1 Reply Last reply
          0
          • N Not Active

            Are you serious? A very cursory search will turn up many results. Have you tried that?


            I know the language. I've read a book. - _Madmatt

            N Offline
            N Offline
            Nandan Basak
            wrote on last edited by
            #5

            Do you want to edit the data which you insert\add????If that is than the ans is try con.open() Dim str As String = "update details set name='" & TextBox1.Text & "', address='" & TextBox2.Text & "', marks='" & Textbox.Text & "' where roll='" & Combobox1.Text & "'" cmd = New OleDb.OleDbCommand(str, con) cmd.ExecuteNonQuery() MsgBox("Record updated", MsgBoxStyle.Information, "Update") Catch ex As Exception MsgBox(ex.ToString) Finally con.Close() End Try

            N 1 Reply Last reply
            0
            • N Nandan Basak

              Do you want to edit the data which you insert\add????If that is than the ans is try con.open() Dim str As String = "update details set name='" & TextBox1.Text & "', address='" & TextBox2.Text & "', marks='" & Textbox.Text & "' where roll='" & Combobox1.Text & "'" cmd = New OleDb.OleDbCommand(str, con) cmd.ExecuteNonQuery() MsgBox("Record updated", MsgBoxStyle.Information, "Update") Catch ex As Exception MsgBox(ex.ToString) Finally con.Close() End Try

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              This most certainly NOT the answer. One, you have responded to the wrong post. Two, you are excepting direct, unvalidated input from user controls that can, and will, expose you to sql injection attacks and other nasty results. Three, it's VB


              I know the language. I've read a book. - _Madmatt

              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