Hi ! I’m trying to open a report (report based on a query with 1 parameter) from inside a macro. This macro is runned when clicking a button on a form. So when opening the report, a prompt shows up to fill that parameter.
Everything works except I have to manually fill the query parameter with the prompt, when it tries to open the report. I have the value that should go as parameter inside the macro, I just need to fill that parameter without any human input.
My macro is currently opening the report as follows :
Thisdatabasedocument.reportdocuments.getbyname("myReport").open
I have found a similar question with a query, but in my case it’s a report that is asking for a parameter. Any idea how to code that ?