Object Reference Error filling a datarow
- by JPJedi
This is the code:
Dim dr() As DataRow = DataSet.Tables("TableName").Select("EVENTNAME = '" & name & "'")
I get an "Object reference not set to an instance of an object." Error when this line is executed. It is looping through a list of selected items in a listbox. I think it has to do with how I have the datarow declared because I can…