The database opens into a frameset. The documents store dates. When a date is matched by an agent it sends an email with a link to the document. If the user clicks X/Esc to close the document no problem. If the user clicks the Close button there is a "Frameset 'bla bla' does not exist" because the code for the Close button is: @PostedCommand([OpenFrameset];"bla bla") which works fine when closing a document that was opened in the database.
Any ideas on how to trap the error in formula? Or any other suggestions to eliminate without losing the function of the Close button?