Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


Hi Ryan,

I'm not sure if this is the best solution, but I have found that it works -

Create the following macros -

Sub OpenfMainMenu()
    OpenForm("fMainMenu")
End Sub

Sub OpenForm(FormName AS String)    'Called from OpenfMainMenu()
    With ThisDatabaseDocument.currentcontroller
        If Not .isConnected Then
               .Connect
        End if
    End With
 ThisDatabaseDocument.FormDocuments.getByName(FormName).open
End Sub

I have called my form "fMain Menu". In your macro, alter the form name to
the name of the form you want to open on startup.

Then on LibreOffice's main form, (the one with buttons for Tables, Queries,
Forms and Reports down the left hand side), choose
Tools|Customise|Events|Open Document and assign the OpenfMainMenu() macro.

Now, when you start LibreOffice you should find that the desired form will
open.  Depending on the speed of your PC/Notebook, you may see the
LibreOffice main form briefly, (or on slow machines, not so briefly!),
before the desired form opens.  I haven't yet found a way to prevent this
happening, but I have found that it doesn't seem to worry most users as
long as the familiar form eventually appears.

Hope this helps.

Noel
--
Noel Lodge
lodgemn@gmail.com


On 15 January 2014 08:42, Ryan Ashley <ryana@reachtechfp.com> wrote:

In MS Access you can select a startup form that will open when the
database file is opened. You can also hide all of the development stuff
(buttons, toolbars, etc) when said form opens so it appears to the end user
as an application. How do I do this in Base? I have been struggling for a
week trying to figure this out. Heck, I am struggling with Base period, it
is much more difficult to use than Access, but I can overlook that due to
the power it has that Access does not. Still, how do I hide the development
stuff and open my form when the ODB file is opened?

--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-
unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be
deleted



-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.