Help Value cannot be null exception

G

Guest

I am experiancing a problem filling a dataset. I am getting a Value cannot be
null exception and can't figure out why. Here is the code what the heck could
be going on?

Dim conn As New SqlConnection(ConnectionString)
Dim adapter As New SqlDataAdapter
strSQL = "SELECT * FROM ChiefComplaints"
adapter.SelectCommand = New SqlCommand(strSQL, conn)
adapter.Fill(dataSet)

this is right out of the help section. I've tested the connection string and
it opens a connection with no problems.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top