ljhodgett
asked on
value can not be null in datatable in vb.net 2005
Hi,
I have the following code: -
SQL = "Select * from dbo.Locations"
dbOpen()
Dim da As New SqlClient.SqlDataAdapter(S QL, oConn)
da.Fill(ds, "Locations")
DataGridView1.DataSource = ds.Tables("Locations")
It always comes up with: -
Value cannot be null.
Parameter name: dataSet
What does this mean please and how to I resolve it.
Many Thanks
Lee
I have the following code: -
SQL = "Select * from dbo.Locations"
dbOpen()
Dim da As New SqlClient.SqlDataAdapter(S
da.Fill(ds, "Locations")
DataGridView1.DataSource = ds.Tables("Locations")
It always comes up with: -
Value cannot be null.
Parameter name: dataSet
What does this mean please and how to I resolve it.
Many Thanks
Lee
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.