Multivalue Column - Split - New Beginning Continuation

Posted on 2006-05-31
Last Modified: 2013-12-18
I plugged this in:
Oh shoot...

I forgot one case: if there's only one document... Search for the first line, with the comment, and modify these lines as follows:

               ' remove excess dup's
               Do Until dupdoc Is Nothing
                    ' skip the importdoc!!!
                    If dupdoc.UniversalId=importdoc.UniversalId Then
                         Call dc.DeleteDocument(dupdoc) ' remove document from the collection
                         Exit Do
                    End If
                    Set dupdoc= dc.GetNextDocument(dupdoc)
               If dc.Count>0 Then ' still documents in the collection...
                    Call dc.RemoveAll(True)
                End If
                ' any leftovers?

and got an error:  Not a sub or function:  DC
Question by:schmad01
    LVL 22

    Accepted Solution

    check whether you declared dc:
        Dim dc As NotesDocumentCollection

    The error isn't in the posted code (even if you haven't declared dc it should work - it's implicitly declared as Variant)

    Hope this helps,

    Author Comment

    Correct. Thank you!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    This is an old article, please see an updated version of this article, located here:
    Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now