Эта строка должна давать ошибку несоответствия типов. Цитата из справки:Call memo.Send( False, False )
Syntax
Call notesDocument.Send( attachForm [, recipients ] )
Parameters
attachForm
Boolean. If True, the form is stored and sent along with the document. If False, it isn't. Do not attach a form that uses computed subforms.
recipients
String or array of strings. Optional. The recipients of the document. See below.
Dim namesdb As NotesDatabase
Set namesdb= session.getdatabase(db.server, "names.nsf") ' а мнеб выбирать или из names.nsf или namesnew.nsf
Set namesdb= session.getdatabase(db.server, "names.nsf")
If Not namesdb Is Nothing Then
Set namesdb= session.getdatabase(db.server, "namesnew.nsf")
End If
Not зачем? смысл проверкиIf Not namesdb Is Nothing Then
AmbiguousError:
Dim persondoc As NotesDocument
Dim namesdb As NotesDatabase
Set namesdb= session.getdatabase(db.server, "names.nsf")
Set persondoc = namesdb.getview("($User)").getdocumentbykey(memo.SendTo(0))
If persondoc Is Nothing Then
Set namesdb= session.getdatabase(db.server, "namesnew.nsf")
End If
memo.SendTo = persondoc.fullname(0) & "@" & persondoc.MailDomain(0)
Call memo.Send(False) '
Взломай свой первый сервер и прокачай скилл — Начни игру на HackerLab