Documents disappear from view after re-saving

I have created an agent which creates a document in a database with Lotus Script: Set doc=New NotesDocument(db). I add items to the form with the syntax doc.item1=. In this way I add the item Form to the document and sets the form-value to the right form. Afters all items and their values are added I save the form with Call doc.Save(True,False).I have a view with selects all documents in db (SELECT @ALL). The documents are visable in the view. But when I open a document in the view, enter Edit-mode and save the document, the document disappears from the view and I can’t find the document.

Please help me

Subject: Documents disappear from view after re-saving - Solved

Sorry,

I had added an item AllAccess to the form which is used when determining which Role the document can see. I was forgotten to add the role to the database and made myself member of the role.

Thanks for reading.