Results 1 to 9 of 9

Thread: master/slave

Threaded View

  1. #6

    Thread Starter
    Hyperactive Member
    Join Date
    May 2007
    Posts
    439

    Re: master/slave

    this does not update a record and gives no error. the fields exists in Access, there is data in the textfield, and the paramaters names seem ok.

    ????

    Code:
      Dim command As OleDbCommand = New OleDbCommand
            Dim myone As Integer
    
            command.Connection = cn
            command.CommandText = "update departments set dname =@two where deptno =@one"
            ' MsgBox(txtdeptno.Text)
            command.Parameters.Add("@one", txtdeptno.Text)
            command.Parameters.Add("@two", txtDname.Text)
           
            cn.Open()
            command.ExecuteNonQuery()
    
            ' command2.ExecuteNonQuery()
    
            cn.Close()
    Last edited by jagguy; Sep 10th, 2007 at 03:42 AM.

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