Locating a document by ID in LotusScript® classes
If you have saved or acquired the note ID or universal ID of a document, you can find a single document by specifying the ID in the GetDocumentByID or GetDocumentByUNID method of NotesDatabase. You can get these IDs from the NoteID and UniversalID properties of a NotesDocument object.