Article ID: 161012
Article Last Modified on 1/19/2007
147633 ACC: How to Run Schedule+ from MS Access Using Automation
Form: FrmOutlook
---------------------------
Caption: Outlook Form
Command button:
Name: RunOutlook
Caption: Start Outlook
OnClick: =StartOutlook()
Public Function StartOutLook()
On Error GoTo StartOutLook_Error
Dim spObj As Object, MyItem As Object
' Create a Microsoft OutLook object.
Set spObj = CreateObject("Outlook.Application")
' Create and open new contact form for input.
' You can substitute olAppointmentItem, olJournalItem, olMailItem,
' olNoteItem, olPostItem, or olTaskItem for olContactItem.
Set MyItem = spObj.CreateItem(olContactItem)
MyItem.Display
' Quit Microsoft Outlook.
Set spObj = Nothing
Exit Function
StartOutLook_Error:
MsgBox "Error: " & Err & " " & Error
Exit Function
End Function160502 ACC: Using Automation to Add Appointments to Microsoft Outlook
Additional query words: OutSol OutSol97
Keywords: kbinfo kbinterop KB161012