DocLink

Hi !.I insert a link to document from other DB (QueryOpen event).

And get error:

“You may not save a Document Link into this field unless the linked-to database is the current database”

[skip]

Set db = New NotesDatabase(“”, “DB.NSF”)

Set view = db.GetView(“View”)

Set doc = view.GetDocumentByKey(key, True)

Set rt = New NotesRichTextItem(Source.Document, “Field”)

Call rt.AppendDocLink(doc, “Link”)

Subject: DocLink

A search of the forum yielded this thread:

http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/216a92ea772cca0585256bdd005eaf52?OpenDocument

The error you’re receiving might be misleading and the cause may be the fact that the field you are trying to append the doclink into may not be defined as rich text.

Hope that helps.

Subject: RE: DocLink

Thank you.