I have a subform called Bin_Weights. I am using the following code to calculate the total net weight:
temptotalB = 0;
for each record in Bin_Weights
{
record.Sub_Total = record.Net_Bin_Weight;
temptotalB = (temptotalB + record.Sub_Total);
}
input.Total_Net_Weight = temptotalB;
I would be most grateful for any advice on this matter.