J
J.J.
I do not believe there is an item value to open the calendar in Outlook much
like
"Set objItem = spObj.CreateItem(olAppointmentItem)" opens the apointment
page etc. As an alternative I triedadapted another piece of code I found:
Sub Command20_Click()
On Error GoTo Command20_Error
Dim oApp As Object, oFolder As Object
Set oApp = CreateObject("Outlook.Application")
Set oFolder = oApp.GetNamespace("MAPI").GetDefaultFolder(olFolderCalendar)
oFolder.Display
Set oFolder = Nothing
Exit Sub
Command20_Error:
MsgBox "Error: " & Err & " " & Error
End Sub
This code runs fine on my test mdb but when I bring it over to the
production mdb which is on the same machine by the way, I get "error 5
invalid procedure call or argument." I can't replicate the problem in the
test enviroment.
Any ideas
like
"Set objItem = spObj.CreateItem(olAppointmentItem)" opens the apointment
page etc. As an alternative I triedadapted another piece of code I found:
Sub Command20_Click()
On Error GoTo Command20_Error
Dim oApp As Object, oFolder As Object
Set oApp = CreateObject("Outlook.Application")
Set oFolder = oApp.GetNamespace("MAPI").GetDefaultFolder(olFolderCalendar)
oFolder.Display
Set oFolder = Nothing
Exit Sub
Command20_Error:
MsgBox "Error: " & Err & " " & Error
End Sub
This code runs fine on my test mdb but when I bring it over to the
production mdb which is on the same machine by the way, I get "error 5
invalid procedure call or argument." I can't replicate the problem in the
test enviroment.
Any ideas