>how do you do that?
- From View menu select Toolbars.
- Check Debugger.
- In the toolbar, click the button with the eyeglasses to call up the Watch window. It should be the 2nd available one from the left.
- In the Watch textbox, enter
DBUSED("mydatabase")
- where mydatabase is the name of the database that's getting closed. Hit enter. It will show up in the list at the bottom.
- Double-click in the grey margin to the left of this new list entry. A red dot should appear there. Now you've set a breakpoint for when the result of
DBUSED("mydatabase")
has changed.
Run the application. This breakpoint will fire once when the database is open, so just resume. Run the report as usual. It will stop again when the database is closed.
Insanity: Doing the same thing over and over and expecting different results.