B
bear
Hello
I have a custom form. Form is a modified appointment with a second tab for a custom form.
Trying to copy data from custom form/second tab to first tab which a standard Appointment page.
First trying to make sure that a user is in a second tab which is called Transportation Form. When code is executed it should take data from some fields in Transportation Form and copy it over to Appointment tab/first tab.
Not sure how to call tabs. Any help would be appreciated
Sub Appt_From_From()
Dim txtBody1 As String
Dim txtBody2 As String
Dim txtBody3 As String
Dim objCurContact As ContactItem
Dim objAppt As AppointmentItem
Set myFolder = Session.GetDefaultFolder(olFolderCalendar)
Set myItem = myFolder.Items.Add("IPM.Appointment.Tim3.18.2010")
On Error GoTo ErrorCode
If Application.ActiveInspector.CurrentItem.Class <> myItem Then
MsgBox "Error,exiting"
GoTo ErrorCode
Else
Set objCurContact = Application.ActiveInspector.CurrentItem
Set objAppt = myItem
I have a custom form. Form is a modified appointment with a second tab for a custom form.
Trying to copy data from custom form/second tab to first tab which a standard Appointment page.
First trying to make sure that a user is in a second tab which is called Transportation Form. When code is executed it should take data from some fields in Transportation Form and copy it over to Appointment tab/first tab.
Not sure how to call tabs. Any help would be appreciated
Sub Appt_From_From()
Dim txtBody1 As String
Dim txtBody2 As String
Dim txtBody3 As String
Dim objCurContact As ContactItem
Dim objAppt As AppointmentItem
Set myFolder = Session.GetDefaultFolder(olFolderCalendar)
Set myItem = myFolder.Items.Add("IPM.Appointment.Tim3.18.2010")
On Error GoTo ErrorCode
If Application.ActiveInspector.CurrentItem.Class <> myItem Then
MsgBox "Error,exiting"
GoTo ErrorCode
Else
Set objCurContact = Application.ActiveInspector.CurrentItem
Set objAppt = myItem