x = Item[ID == row.Item];
row.Price=x.Price;
row.Quantity=1;
if(row.Price != null && row.Quantity != null)
{
row.Subtotal=row.Price * row.Quantity;
}
t = 0.0;
if(row.Price != null && row.Quantity != null)
{
for each rec in Items
{
t = rec.Subtotal + t;
}
}
input.Total = t;
Every time I do this starting yesterday evening, I am able to calculate the subtotal in the subform, but I get the following error every time it calculates the total: