I have a database for supervisor shift reports. The shift report must be locked after the shift has ended so no further editing can take place. I have written an agent in LotusScript that handles that requirement. The problem I am having is that sometimes the supervisor forgets to close the shift report at the end of the shift. He just walks away and goes home. I found a property in the NotesDocument class that will tell me if the uidoc is open, doc.IsUIDocOpen, but I don’t know how to access the open report and close it from the agent. Any suggestions? Thanks for your help.