An unhandled exception of type 'System.IndexOutOfRangeException' occurred in system.data.dll
Additional information: An OleDbParameter with ParameterName 'ISBN' is not contained by this OleDbParameterCollection.
The code:
If cboSearch.Text = "Books" Then
Dim ProductId As String
txtProductID.Text = ProductId
Dim dt As New DataTable
OleDbDataAdapter1.SelectCommand.Parameters("ISBN").Value = txtProductID.Text
OleDbDataAdapter1.Fill(dt)
DataGrid1.DataSource = dt
End If
OleDbDataAdapter1.SelectCommand.Parameters("ISBN").Value = txtProductID.Text is highlighted in green
am using vb.net and access
2006-07-31
17:17:22
·
3 answers
·
asked by
braich_gal
3
in
Computers & Internet
➔ Programming & Design
how do u set the parameters with oledbdataadapter
2006-07-31
17:36:28 ·
update #1