Database closes immediately after opening

nsnotify makes that work better, but my fileglobal variable remains unrecognized when control returns to my calling procedure (the same one that defined the variable!). So I tried setactivedatabase to my original database and it cured that problem.

On to frying other fish…