Home » questions » What does this error mean and how to correct it?
What does this error mean and how to correct it?
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
how do u set the parameters with oledbdataadapter

Answers
GrapeApe33
On 2006-07-31 21:22:11
publicguest
On 2006-08-01 03:20:41
dreamcatweaver
On 2006-07-31 21:35:02