A
Aziz
I am using VB.NET 2003
I have a simple Dataset DataTable (call it StockLevels) such as this:
BaseMetalCode (PK) BaseMetalInStock
Ag 1000
Zn 700
Si 1300
Cu 2300
etc etc
If know the value of the PK (Zn), how do I update the BaseMetalInStock
related field for it?
If I use:
dsDataset.StockLevels.FindByBaseMetalCode("Zn").BaseInStock =
CInt(1000)
I get this error:
Object reference not set to an instance of an object.
It's probably very easy to solve but how?
I have a simple Dataset DataTable (call it StockLevels) such as this:
BaseMetalCode (PK) BaseMetalInStock
Ag 1000
Zn 700
Si 1300
Cu 2300
etc etc
If know the value of the PK (Zn), how do I update the BaseMetalInStock
related field for it?
If I use:
dsDataset.StockLevels.FindByBaseMetalCode("Zn").BaseInStock =
CInt(1000)
I get this error:
Object reference not set to an instance of an object.
It's probably very easy to solve but how?