Import Details Data

Hello,
I want to import different category items instead of copying them, where the user selects the source contract and then the details are displayed. Then, for example, the user can copy 2 of 3 displayed detail datasets from the detail data records and click on a button. Then a storage routine may have to run through a loop and then saves the selected regulations from the source contract to the target contract. Do you have any idea how to do this? It is also possible to select a category with details at the moment and copy another regulation in another mask.

I have to try a run button but it seems not working.
I must select the contract, then I select the contract from where I want to import the data,
then the details of the second contract where be shown and then select from a checkbox all details which I will to import and press a button

But I have different import categories, which have to select all data from different tables

I have no idea how to do this.
I need help. Thank you

you have to use a run button in combination with a master/detail. Master would be the contract to copy from/detail would be the details link to the contract to copy from with the run button.
Maybe on the master form you will have to add a custom select to chose the contract where to copy to. Use global variables to save those 2 contract-numbers and use them in the run-button.

All needed fields are the loaded to write your sql to add data in table.

Is a way to do it. Maybe there are others