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!
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.
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.
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.