TimSweet220
asked on
Conversion problem
Public Sub GetPathway(ByVal vABR_ID$)
If SqlConnection1.State = ConnectionState.Closed Then
SqlConnection1.Open()
End If
Dim DsPathway1 As String
SqlDiplomateAdapter.Select Command.Pa rameters(" @abr_id"). Value = vABR_ID
SqlDiplomateAdapter.Fill(D sPathway1)
The above code is an attempt to populate th a dataset.
However, the dataset includes to fields one is nvarchar and the other is a bit. I'm getting an error say that "As Interger Value of type "string cannot be converted to System.Data.DataSet"
and
"As Interger Value of type "string cannot be converted to System.Data.Datatable"
can I assume that that's because of the BIT? What options do I have?
Regards
If SqlConnection1.State = ConnectionState.Closed Then
SqlConnection1.Open()
End If
Dim DsPathway1 As String
SqlDiplomateAdapter.Select
SqlDiplomateAdapter.Fill(D
The above code is an attempt to populate th a dataset.
However, the dataset includes to fields one is nvarchar and the other is a bit. I'm getting an error say that "As Interger Value of type "string cannot be converted to System.Data.DataSet"
and
"As Interger Value of type "string cannot be converted to System.Data.Datatable"
can I assume that that's because of the BIT? What options do I have?
Regards
ASKER
DsPathway1 is a dataset already created from a DataAdapter
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Did you mean to dim this as a dataset?