I have been able to create a macro to open a form using a push button with the following subroutine
Sub OpenLibraryBookMaster
const sNewDocumentName=“LibraryBookMaster”
oNewFormDocument=ThisDatabaseDocument.FormDocuments.getbyname(sNewDocumentName).open
End Sub
I would like to create a macro to open a query I have in the queries section of LO with a push button but have been unable to do so and would be grateful if a subroutine could be shown how I could do this.
Looking forward to answer in anticipation.
HarryMac