C#: Object reference not set to an instance of an object.
- by Vinzcent
Hey,
I get the following error:
Object reference not set to an
instance of an object
This is my C Sharp code:
DataTable tableAcces = dsAcces.Tables["dsPrinterAcces"];
DataTable tableMDF = dsAcces.Tables["dsPrinterMDF"];
DataRow newrow = null;
foreach(DataRow dr in tableAcces.Rows)
{
newrow =…