Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

No value given to one or more required parameter.

$
0
0

Dear All

In my window application I want to update the field/column.

my codes are

 Try
            Dim cb As New OleDb.OleDbCommandBuilder(da)
            i = CInt(AdmissionIDLabel1.Text)
            Dim linenum As Integer = ds.Tables("Table").Rows.Count

            For i As Integer = 0 To linenum - 1
                ds.Tables("Table").Rows(i).Item(26) = AdmissionLabel3.Text
                ds.Tables("Table").Rows(i).Item(27) = Term1Label1.Text
 Next
            da.Update(ds, "Table")
            MessageBox.Show("Data updated")
        Catch ex As Exception
            MessageBox.Show("There was an Error processing your request. Please Try again." & vbCrLf & vbCrLf &"Original Error:" & vbCrLf & vbCrLf & ex.ToString, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)

        End Try

I am getting below error

sunil


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>