Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a row to a dataset
Message
From
06/08/2004 13:48:36
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Adding a row to a dataset
Miscellaneous
Thread ID:
00931376
Message ID:
00931376
Views:
74
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.

TIA!!

MAC
Very fitting: http://xkcd.com/386/
Next
Reply
Map
View

Click here to load this message in the networking platform