I have a date field on form A (TEE_Meeting_Date) which I’m tring to copy to to the same field on form B, using lotus script. They all copy except for the date field. Script goes something like this…
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Set db=session.CurrentDatabase
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc=workspace.CurrentDocument
Set doc=uidoc.Document
Set newdoc= New NotesDocument(db)
’ Call doc.CopyAllItems(newdoc)
newdoc.form = "Presentation"
newdoc.TEE_Meeting_Type = doc.TEE_Meeting_Type
newdoc.TEE_Meeing_Date = doc.TEE_Meeting_Date
’ newdoc.TEE_Meeting_Type_Mirror = doc.TEE_Meeting_Type_Mirror
’ newdoc.TEE_Meeting_Date_Mirror = doc.TEE_Meeting_Date_Mirror
’ newdoc.TEE_Meeting_Title = doc.TEE_Meeting_Title
Call newdoc.Save(True,True)
Call workspace.editDocument(False,newdoc)
End Sub
It’s a Date/Time, editable, Calendar/Time control format.
What am I missing? I KNOW I’ve done this before with script, just can’t get it working now.
Thanks,
Angelo Giaimo