jamie_pattison
Well-known member
- Joined
- Sep 9, 2008
- Messages
- 116
- Programming Experience
- Beginner
I have created some code that runs as expected. I am now trying to retrieve a value from one column using this code:
- Also have tried .ToString
This produces the error "Column 'ColumnName' does not belong to table 'Table'. So i changed the code to
This produces the error
Object reference not set to an instance of an object.
Im lost where the problem is and why....Could anyone advise?
Thanks
VB.NET:
ds.Tables(0).Rows(0).Item("ColumnName").Value
This produces the error "Column 'ColumnName' does not belong to table 'Table'. So i changed the code to
VB.NET:
ds.Tables("TableName").Rows(0).Item("ColumnName").Value
This produces the error
Object reference not set to an instance of an object.
Im lost where the problem is and why....Could anyone advise?
Thanks