Adding Subforms in Deluge

Adding Subforms in Deluge

Hi

I'm trying to add new rows in a subform, but keep getting an error. I have posted unfinished code below, and getting an error at: row1 = Suppliers.SupplierParts(); with Suppliers being the form link name, and SupplierParts being the subform link name.

The error I receive is: 
xecution Failed
Value is empty and '18711000000067550' function cannot be applied Line:(9)

I've essentially trying to create a new row and then go about populating it and this is the code I can find online for how to do it. Does anyone have any other tips?

void Parts_Functions.updatePartsToSuppliers()
{
for each  part in Create_Part_or_Material[ID != 0]
{
for each  supplier in part.Part_Suppliers
{
info supplier.Suppliers.Supplier;
supplierRecord = Suppliers[ID = supplier.Suppliers];
row1 = Suppliers.SupplierParts();
//row1.Test_Line = "blah blah blah";
//row1.Create_Part_or_Material = 9879879873;
info row1;
}
}
}