Page 1 of 1

[Solved] UNO Quit refuses to quit

Posted: Tue Oct 01, 2019 4:47 am
by gkick
Hi all,

Not sure whether to post this here or in Base. In my base db menu I have a Quit button to which I have assigned the action Open document webpage and the URL .uno:Quit as per image below. Running the button will not quit but open the File Open Dialog ???

If I alternatively run the Access2Base doCmd Quit macro, it tells me there is no connection even though the frontend is connected.
Anyway, anyone having a working macro to close down Base, but not necessarily other LO windows ?

Thanks

Re: UNO Quit refuses to quit

Posted: Tue Oct 01, 2019 10:36 pm
by JeJe

Code: Select all

sub MacroToCloseCurrentComponent
Thiscomponent.close(true)
end sub
If you have more than one database open you can enumerate all the components to close the database ones.

Re: UNO Quit refuses to quit

Posted: Wed Oct 02, 2019 2:54 am
by gkick
Thank you Jeje, however I get the following error message as shown in the image. So far I did find another macro named Lopetus2 which does do a pretty clean kill in Windows, but leaves a 0 byte temporary file in the user folder.

Cheers