Show links from subform in main form's report via script

Show links from subform in main form's report via script

Hello,

I have a form by which I upload files. Each record of the parent form needs to be associated with 1 or more uploaded files or URL links. The only way I know to associate a variable number of uploaded files or linked sites is to use a sub form. This part is OK.

However: I want the end user to be able to click on a link to download the stored file or access a web-URL directly from the parent form's report without having to open a separate window corresponding to each of the sub-form entries.

How would I create a script on "Submit" during the initial upload process that would copy all of the link-texts (with associated URLs) from the sub-form and place them as still active links into a rich text field in the parent form, preferable on separate lines? 

Thank you in advance for your advice.