Hi.
I have two forms. The first, designed some time ago, is just a report request form and has a combo box to select a workorder, click "Run Report" (cmdRunReport), and the user gets a status report on this workorder. There's a lot of code in the cmdRunReport module.
Now I have a new form for a different use, but it also happens to have the same workorder selection field. The head user just said, golly, can we get that status report to run off this form? I thought it would be simple.
I have a button on the new form with the intended goal to run the report. I can't get the code behind this new form's button to "click" the Run Report button on the old form. I can't seem to find help about it (probably not searching using correct terms). Can anyone give me the one-liner on how to run the cmdRunReport_On Click routine on the old form from the new form?
I know there are a lot of complex ways to fix this, but I'm really interested in simply running that code from a different form.
I have two forms. The first, designed some time ago, is just a report request form and has a combo box to select a workorder, click "Run Report" (cmdRunReport), and the user gets a status report on this workorder. There's a lot of code in the cmdRunReport module.
Now I have a new form for a different use, but it also happens to have the same workorder selection field. The head user just said, golly, can we get that status report to run off this form? I thought it would be simple.
I have a button on the new form with the intended goal to run the report. I can't get the code behind this new form's button to "click" the Run Report button on the old form. I can't seem to find help about it (probably not searching using correct terms). Can anyone give me the one-liner on how to run the cmdRunReport_On Click routine on the old form from the new form?
I know there are a lot of complex ways to fix this, but I'm really interested in simply running that code from a different form.
Comment