Assuming mysubform is required, the following result was found.
name v_CreatorRecordID = v_CreatorQuoteID; // this is the creator record id that has the attachment v_SubFormName = "mySubform"; // put here the link name of your subform v_FieldName = "myField"; // put here the link name of the field in that subform...