Can somebody tell me what is wrong with this code?
Dim rowNew As DataRow
rowNew = gModelTagsDS.Tables("header").NewRow()
rowNew("model") = Trim(txtModelNum.Text)
rowNew("modeldesc") = Trim(txtModelDesc.Text)
rowNew("partdesc") = desc
rowNew("quantity") = temp
I get an Object reference not set to an instance of an object error.
Hi, Mike,
Exactly which line is it dying on? Try tracing through it, and look at all of your variables and objects in the watch window. At least one of them hasn't been initialized, so it will probably show as 'null', 'undefined', etc.
Kevin