I'm using visual basic to update some information in a lotus notes database...specifically the contact database...names.nsf. My code opens the document in edit mode, changes the appropriate field value, then saves it. But when I try to close the document I get an error "Object doesn't support this property or method". It's erroring out on the "call doc.close line below...if I take that out everything works fine, but I get every contact in my address book opened in edit view at the same time and I have to manually close. Help please!!!
Set doc = db2.GETDOCUMENTBYUNID("0F296CF6BE986EDD862568790056DC82"
Call workspace.EditDocument(True, doc)
Call doc.REPLACEITEMVALUE("CompanyName", " "
Call doc.Save(True, False)
Call doc.Close
End If
Set doc = db2.GETDOCUMENTBYUNID("0F296CF6BE986EDD862568790056DC82"
Call workspace.EditDocument(True, doc)
Call doc.REPLACEITEMVALUE("CompanyName", " "
Call doc.Save(True, False)
Call doc.Close
End If