Calendar Date/Time

How do I fill in my field values on my form with the date I selected in my calendar view?


 

Sub Regiondoubleclick(Source As Notesuiview) Dim workspace As New NotesUIWorkspace Dim uidoc As NotesUIDocument Set uidoc = workspace.ComposeDocument _ ( "", "", "Main" ) Call uidoc.fieldsettext("calentrybegindate",Cstr(Source.CalendarDateTime)) Call uidoc.fieldsettext("calentryenddate",Cstr(Source.CalendarDateTime)) Call uidoc.fieldsettext("calentrybegintime",Format(Source.CalendarDateTime, "hh:mm AM/PM")) Call uidoc.fieldsettext("calentryendtime",Format(Source.CalendarDateTime, "hh:mm AM/PM")) End Sub

This was first published in February 2001

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.