In StarBasic, I know how to
QueryResultsObject = SQLStatementObject.executeQuery(SQLQueryString)
but is there a way to instead set the QueryResultsObject to the results of a query saved in the .odb file?
Addendum: I want to have the macro use certain values from the query, just as I would with a queryresult. I just don’t want the SQL hard-coded into the macro. I want it to depend on what is set up in the query saved in the .odb file.