Finds a document in a database, given the document's note ID.
Set notesDocument = notesDatabase .GetDocumentByID( noteID$ )
noteID$
String. The note ID of a document. You can obtain this from the NoteID property of a document.
notesDocument
NotesDocument. The document with the specified note ID. Returns Nothing if a match is not found.
For an explanation of NoteIDs, see the NoteID property in NotesDocument.