HI,
I am creating a document and in the Sub Initialize event I have soom Script that goes to a view in the current DB and gets the first document and then gets the value of a certain field and places the value into a computed field in the document that I am creating. I get the value but it does not appear in the computed field in the doucment I created? Why is the value not in the field?
Sub Initialize
Dim session As New notessession
Set db = session.currentdatabase
Set view = db.getview("ProductLookup")
Set doc = view.getfirstdocument
Dim item As NotesItem
Set item = doc.ReplaceItemValue _
( "MiddleNumHold2", doc.MiddleNumHold(0))
Call doc.Save( False, True )
Messagebox "MiddleNumHold2 " & doc.MiddleNumHold2(0)
End Sub

LotusScript - can't save value? Hel... (Anthony J Cotel... 4.Jan.01)
. . 