This is the offending piece of code, the boldened part is where the error occurs.
This is the error that I'm getting while running it.VB Code:
Dim sqlQuery As String = "INSERT INTO longdescs (bug_id, " & _ "bug_when, " & _ "thetext, " & _ "who) " & _ "VALUES (" [b]sqlQuery &= data.Tables("ProblemTable").Rows(0).item(0).ToString & ", '"[/b]
I used New in order to create a new instance of the DataSet object so I don't understand the warning message about the object reference being not set.Code:System.NullReferenceException: Object reference not set to an instance of an object.




Reply With Quote