KeeAutoExec background open

Kev
2014-01-01
2014-01-02
  • Kev
    Kev
    2014-01-01

    Hi all,

    I use the KeeAutoExec plugin to open an additional database when I open my main database. The trouble is that the additional database is opened second so is then the 'active' database. Is there anyway to either put the focus back on the main database or open the second one in the background?

    Thanks and Happy New Year!

     
  • wellread1
    wellread1
    2014-01-01

    You can create a trigger using the Activate ACTION and Opened database EVENT to set the active database to the main database when the secondary database is first opened. This works well as long as you generally open both databases at once.

     
  • Paul
    Paul
    2014-01-01

    Create the trigger with a filter for the "opened database" event that matches the second database. Then if you don't open that DB it will not be made active.

    cheers, Paul

     
  • Kev
    Kev
    2014-01-02

    Perfect!

    I'd only created a trigger just before posting this as well and never thought I might be able to do it that way.

    I've done the trigger for this now and it works as expected.

    Many thanks.

     
  • Kev
    Kev
    2014-01-02

    Perfect!

    I'd only created a trigger just before posting this as well and never thought I might be able to do it that way.

    I've done the trigger for this now and it works as expected.

    Many thanks.