![]() ![]() And I hope somebody also might see what I do wrong. I got my code from this forum where in many places it is described why it fails when run under My Macros but works when run in the macro area of the database.Īs it works for others, I assume i make a mistake which I do not see. This means, in my application both ThisDatabaseDocument and ThisComponent are always undefined. They exchanged ThisDatabaseDocument with ThisComponent and tell that it worked after that modification. I found in this forum several topics where people had a similar problem. I also execute this macro manually by F5, or by a button in a form. The macro is part of the Standard.Module1 area of the database, as it should be, and not in My Macros. The undefined variable is ThisDatabaseDocument. (BASIC runtime error, variable not defined). When executing the line DB = ThisDatabaseDocument, I get the following error: BASIC Laufzeitfehler. This also works properly, as is proofed by the MsgBox. I connected this macro with the OnOpen event of LO Base. I try to do that with the following macro: I want to execute this report automatically when LibreOffice is started with the database.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |