DODEFAULT() LOCAL ln_juv_rela_rec && define local numeric var to store recno SELECT v_juvm_relations && Select the primary alias APPEND BLANK && add a blank record SELECT v_juvm_juv_rela && Select the secondary indexed target alias APPEND BLANK && add a record ln_juv_rela_rec=RECNO() && store the record numbers *Update the foreign keys, including rela_key the active index used * for the relation REPL juv_key WITH v_juvm_juveniles.juv_key,; rela_key WITH v_juvm_relations.rela_key *The following code is to force the index to see the new record *I could use GO RECNO() instead of the recno in a variable, but *I think the variable is easier to follow. Note that the relation *will fail if the following line is removed GO ln_juv_rela_rec && needed to refresh v_juvm_juv_rela cursor SELECT v_juvm_relations && Select the primary alias THISFORM.pgfbizobj.page6.grd_codebook_grid1.REFRESH() && Refresh grid