parameters tnTemplateID, tnVenueID private newTemplateID newTemplateID = 0 if messagebox('Are you sure you want to duplicate the existing template and all the related information?',36,'Duplicate Template') = 6 if mySQLExec ('execute dbo.siriussp_rsDuplicateTemplate ?m.tnTemplateID, ?m.tnVenueID, ?@newTemplateID', 'NewTemplateInfo', program()) insert into rsTemplates select * from NewTemplateInfo =TABLEUPDATE(.t.,.f.,'rsTemplates') insert into rsLevels select * from NewTemplateInfo1 && Levels info =TABLEUPDATE(.t.,.f.,'rsLevels') thisform.lTemplateDuplicated = .t. if seek(m.newTemplateID, 'rsTemplates','TemplateID') thisform.AddTemplate(thisform.LastSelectedIndex) && this only sets up the Tree, it is not inserting any data endif wait window nowait 'Template was duplicated!' SELECT rsTemplates =SEEK(m.newTemplateId, 'rsTemplates','TemplateID') else =messagebox('There was a problem duplicating the template...',48, 'Error with Duplicate Template') thisform.lTemplateDuplicated = .f. endif endif RETURN m.newTemplateIdThe name I use to duplicate is the original name + ' - Duplicate'. So, after I duplicated I only leave Save button enabled. I change the description and press the Save button. At that point the new phantom record is created in addition to correctly updating the newly duplicated record with the