S
Shannon Ramirez
I have a dataset that I'm trying to populate to a list box. Here is
the code I'm using
Dim dsSurgeon As New DataSet
dsSurgeon = ws.fnSurgeonSEL(0, 1)
With Me.lbSurgeon
.DataSource = dsSurgeon.Tables("SurgeonSEL")
.DisplayMember = "vcSurgeonName"
.ValueMember = "intTblSurgeonId"
End With
End Sub
it blows up on me at the datasource line. It's telling me something
about system.nullreferrence
the dataset is getting created by a webservice and when I debug the
webservice, that dataset (fnSurgeonSEL) is getting populated with
data. Any idea what I'm doing wrong in my code. I have instantiated
the ws reference (I think that is the right term) to the webservice
and am using this webservice to populate a datagrid.. it's a different
function though.
any help would be great
thanks
shannon
the code I'm using
Dim dsSurgeon As New DataSet
dsSurgeon = ws.fnSurgeonSEL(0, 1)
With Me.lbSurgeon
.DataSource = dsSurgeon.Tables("SurgeonSEL")
.DisplayMember = "vcSurgeonName"
.ValueMember = "intTblSurgeonId"
End With
End Sub
it blows up on me at the datasource line. It's telling me something
about system.nullreferrence
the dataset is getting created by a webservice and when I debug the
webservice, that dataset (fnSurgeonSEL) is getting populated with
data. Any idea what I'm doing wrong in my code. I have instantiated
the ws reference (I think that is the right term) to the webservice
and am using this webservice to populate a datagrid.. it's a different
function though.
any help would be great
thanks
shannon