developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks




ERROR 91: Object variable not set
Robert Brindza 06/13/2013 10:17 AM
Applications Development All Releases All Platforms


Need another set of eyes... I am getting an “ERROR 91: Object variable not set” right at this line

Set ReadersItem = .ReplaceItemValue("DocReaders", dReaders)


What am I missing here? (Script below)
…………..
Set gLibCurrentDoc = New NotesDocument ( gLibCurrentDatabase )
gLibCurrentDoc.Form = "frmSalaryReviewNotify"
With gLibCurrentDoc
Dim ReadersItem As NotesItem

Dim dReaders (1 To 2) As String

dReaders(1) = “Jim Smith”
dReaders(2) = “[Admin]”

.DocReaders = dReaders


Set ReadersItem = .ReplaceItemValue("DocReaders", dReaders)


ReadersItem.IsReaders = True
……………

Go back