I think Mika’s point was that you should REcode the field value that needs updating into a script agent that will set it on the selected documents without the need to open and close them… which would not be a very elegant option anyway.
Unfortunately I can not rewrite the form. I am not the original developer of the database. The original developer made use of form events to calculate the document. I only added an additional field to the form and modified the postopen event. Newly created documents are being procesed updating my field. Existing documents once opened and closed work also processing the post open event. I wish I new how to rewrite the code but I am a novice at best
You don’t need to open and close the Form, just create an backend agent like I suggested earlier. If you have a view which shows all documents using your Form, you could write an agent like: