Accessing a document in LotusScript®
You can access existing documents in a database using the GetDocumentByURL method of NotesDatabase class. This method instantiates a document in the Web Navigator database and returns a NotesDocument object for it.