How to open a selected form, from a report window using script on a specific button click

How to open a selected form, from a report window using script on a specific button click

Hi,

I am developing a sales management app.

I have New_Purchase_Order form and All_Purchase_Orders Report.

I want to add a status change button which will change the status of the selected form.

But at a time I need to input some details based on the status. So I need that selected form to open in edit mode while clicked on "Change Status" Button.

Please suggest the best way to do it.

Thanks in advance.