K
Kerry
I have the code below in an access 2000 database. I'm
trying to add a task to outlook 2000. It works fine on my
windows 2000 and winxp machines, but as soon as I try to
get it to run on my windows2000 terminal server I get the
run time error. Any suggestions?
'Option Explicit
Function fncAddOutlookTask()
Dim OutlookApp As Outlook.Application
Dim OutlookTask As Outlook.TaskItem
Set OutlookApp=CreateObject("Outlook.Application")
Set OutlookTask=OutlookApp.CreateItem(olTaskItem)
With OutlookTask
.Subject="Need to Follow UP"
.Body="Check this date for follow up"
.Reminderset=True
.ReminderTime=DateAdd("n",2, Forms!
MMEHT_ShortTermDisability.Follow_Up_Date)
.DueDate=DateAdd("n", 5, Forms!
MMEHT_ShortTermDisability.Follow_Up_Date)
.Save
End With
End Function
trying to add a task to outlook 2000. It works fine on my
windows 2000 and winxp machines, but as soon as I try to
get it to run on my windows2000 terminal server I get the
run time error. Any suggestions?
'Option Explicit
Function fncAddOutlookTask()
Dim OutlookApp As Outlook.Application
Dim OutlookTask As Outlook.TaskItem
Set OutlookApp=CreateObject("Outlook.Application")
Set OutlookTask=OutlookApp.CreateItem(olTaskItem)
With OutlookTask
.Subject="Need to Follow UP"
.Body="Check this date for follow up"
.Reminderset=True
.ReminderTime=DateAdd("n",2, Forms!
MMEHT_ShortTermDisability.Follow_Up_Date)
.DueDate=DateAdd("n", 5, Forms!
MMEHT_ShortTermDisability.Follow_Up_Date)
.Save
End With
End Function