February 9, 200521 yr I have a set of databases connected through different relations. Each database has a startup script that is launched when the database is opened. So fa so good. Now i have one database (it is a child database) of which the startup script is not launched when the database is opened during a relation calculation in my main database. All other child databases work perfect. If i open this database directly the startup script is launched. I have tried 1] renaming the script and resetting the document setting 2] recover the database 3] pulled out my last hair (that wil not do the trick anymore) Please advise on this thanks Jitse
February 9, 200521 yr That's right, the startup script is only invoked when the file is opened by double-clicking on the file or calling it through an Open script step. Startup scripts are not invoked when a file is opened indirectly, like through a relationship. -- "We have normality. Repeat, we have normality. Anything you still can't cope with is therefore your own problem." -- Douglas Adams, Hitch Hikers Guide to the Galaxy.
February 10, 200521 yr I'd call your related databases to open with an Open File step when the parent database opens and its StartUp script runs. That should ensure that the child startup scripts run.
February 10, 200521 yr Make sure that you are not a layout containing a related field when the main file opens or the relationship will also force the file to open without running its startup script.
Create an account or sign in to comment