Dim doc As NotesDocument Set doc = source.Document
Dim dc As NotesDocumentCollection
Call dc.AddDocument(doc)
I get an object variable not set error
I have to be making this harder than it is
Thanks
Stan
Dim doc As NotesDocument Set doc = source.Document
Dim dc As NotesDocumentCollection
Call dc.AddDocument(doc)
I get an object variable not set error
I have to be making this harder than it is
Thanks
Stan
Subject: Create a documentcollection of 1 doc How?
Yes you are.
You have not set the dc, so it is impossible to add to it.
what exactly are you trying to accomplish?
Subject: RE: Create a documentcollection of 1 doc How?
I didnt have anything to set in the collection except the one doc… and couldn’t figure how to get just the one I was working on… and why is for the very reason that they talk about in the article I posted… StampAll.
Thanks
Stan
Subject: RE: Create a documentcollection of 1 doc How?
I still do not know why you are going through all of this effort to make a change in a document you already have a handle on…
Subject: StampAll
There are times you want to update a field without saving the document. StampAll accomplishes that. Does that clarify it?
Subject: Create a documentcollection of 1 doc How?
dc is nothing even at the point you dimmed it. You could make use db.search to search for something which doesn’t exist (for example a search from of ’ Select form=“ThisDoesnotExsit” ')
This would yield dc to be a document collection with nothing in it. At that point you can call the dc.AddDocument and it will work.
HTH – Cheers
Subject: I found the answer
http://www.lotusgeek.com/SapphireOak/LotusGeekBlog.nsf/d6plinks/ROLR-5TVAAG