I’m having a problem with the NotesViewEntryCollection class.If anyone can help I would greatly appreciate it. I’ve worked too long on this and have looked at help over and over but have had no luck.
First I’m using GetFirstDocument method. I get the doc, get a few fields value then create a new doc with those values.
Here is where I’m having trouble. After the doc is created, I need to look to a view for more info for the newdoc based on the getfirstdocument.
Everything works fine, the newdoc is created then sent, getsnextdoc, then sends that one too.
The problem is that the NotesViewEntryCollection isn’t getting values to place on the newdoc. Nothing happens with that whole section.
here is the code for the NotesViewEntryCollection
'before all this, get first doc and creates newdoc then looks in
another view for additional fields for newdoc
'…there is where I’m having trouble…
Dim ViewTwo As NotesView
Dim Ventry As NotesViewEntry
Dim VeCol As NotesViewEntryCollection
Dim DocTwo As NotesDocument
Dim key as Variant
key = DocOne.mykeyfieldname(0)
Set db = session.CurrentDatabase
Set ViewTwo = db.Getview(getviewtwo)
Set VeCol = ViewTwo.GetAllEntriesByKey(key, True)
Set Ventry = VeCol.GetFirstEntry()
While Not (DocTwo Is Nothing)
Set DocTwo = Ventry.Document
NewDoc.Name = DocTwo.Authors(0)
'…get more values
'…get more values
'…get more values
'…get more values
Set Ventry = VeCol.GetNextEntry(Ventry)
Wend
'this just returns to top to get the next doc, then proceeds to notesviewentry section for more info for newdoc to send.
Set DocOne = ViewOne.GetNextDocument(DocOne)
Wend
End Sub
Thanks for any help with this NotesViewEntryCollection class!