Copy a record and a subform as a function

Copy a record and a subform as a function

Hello I am trying to ma a function that gives me control of copying an old record.
Som  fields should be as the are in previous record an som should be different. 
This is no problem but when it comes to make inserts from a subform  (which also is included in the form) I can't do it.
Can anybody help me?

It looks like this

void RE_Previous_Record(int Previous_ID)
{
    Previous_Record  =  Trycklista  [ID = input.Previous_ID];
    New_Record_ID = insert into Trycklista
    [
   Offert_order = Previous_Record.Offert_order
   S_ljperiod = Previous_Record.S_ljperiod
   Kampanjens_namn = Previous_Record.Kampanjens_namn
   Typavmall = Previous_Record.Typavmall
   Arbetsnamn = Previous_Record.Arbetsnamn
   Format = Previous_Record.Format
   Omf_ng_antal_sidor = Previous_Record.Omf_ng_antal_sidor  
     Leveranser = Previous_Record.Leveranser
    ];

    openUrl(" http://creator.zoho.com" + zoho.appuri + "Trycklista/record-edit/Orderlista_Vasttrafik/" + New_Record_ID + "/Opened_As=Popup", "popup window", "height=800,width=1100");
}

Its when I try to include "leveranser" i get the problem. Leveranser is the name of the subform with also includes


the fields "Antal" and "Levity".


Please help!
Best Regards
Anders Lundin