I am trying to open a form by passing a value to its tableadapter. In the code below Acct has a value but the error is on waterDataSet.AR. Apparently it is null. How can a dataset be null? How would I go about getting around this error thanks! Note that I use the commented out code in other places with no problems!
public void LoadWaterAcct(String Acct, String tableName)
{
//demTableAdapter1.FillByStreet(waterDataSet.DEM, Num, Dir, Street);
arTableAdapter1.FillByWaterAcct(waterDataSet.AR, Acct);
}
Thanks!
DataSetis a reference type, so a variable of typeDataSetis null until you assign aDataSetinstance to it…