B
Bonzol
Thanx to the help of other memebers on this group i've gotten to where
I am
however, I seem unable to add the required paramater to my stored
procedure
my code
Dim toreturn As System.Data.DataTable
' Try
Me.SqlConnection1.Open()
Me.SqlSelectCommand1.CommandText = "[CustOrdersOrders]"
Me.SqlSelectCommand1.Parameters.AddWithValue("@CustomerID",
"VINET")
Me.SqlSelectCommand1.ExecuteNonQuery()
Me.SqlDataAdapter1 = New
System.Data.SqlClient.SqlDataAdapter(Me.SqlSelectCommand1.CommandText,
Me.SqlConnection1)
Dim dt As System.Data.DataTable
dt = New System.Data.DataTable
Me.SqlDataAdapter1.Fill(dt)
Me.SqlConnection1.Close()
toreturn = dt
'Catch
'End Try
Return toreturn
the error
Procedure 'CustOrdersOrders' expects parameter '@CustomerID', which was
not supplied
any help?
thanx in advance
I am
however, I seem unable to add the required paramater to my stored
procedure
my code
Dim toreturn As System.Data.DataTable
' Try
Me.SqlConnection1.Open()
Me.SqlSelectCommand1.CommandText = "[CustOrdersOrders]"
Me.SqlSelectCommand1.Parameters.AddWithValue("@CustomerID",
"VINET")
Me.SqlSelectCommand1.ExecuteNonQuery()
Me.SqlDataAdapter1 = New
System.Data.SqlClient.SqlDataAdapter(Me.SqlSelectCommand1.CommandText,
Me.SqlConnection1)
Dim dt As System.Data.DataTable
dt = New System.Data.DataTable
Me.SqlDataAdapter1.Fill(dt)
Me.SqlConnection1.Close()
toreturn = dt
'Catch
'End Try
Return toreturn
the error
Procedure 'CustOrdersOrders' expects parameter '@CustomerID', which was
not supplied
any help?
thanx in advance