The following error occurred: Error 4469: Document already exists in this collection

How can you check to see if a document already exists in a colleciton?

Subject: The following error occurred: Error 4469: Document already exists in this collection

Use the GetDocument method of the NotesDocumentCollection class.

'dclxn = instance of NotesDocumentCollection class

'docTarget = instance of NotesDocument class

if dclxn.GetDocument(docTarget) is nothing then

msgbox “Document is NOT a member of the document collection!”, , “DEBUG . . .”

else

msgbox “Document IS a member of the document collection!”, , “DEBUG . . .”

end if

hth,

dgg