Q
Question Boy
I am using the following bit of code to create a task in Outlook from Access
Dim olApp As Outlook.Application
Dim olTask As Outlook.TaskItem
Set olApp = CreateObject("Outlook.Application")
Set olTask = olApp.CreateItem(olTaskItem)
With olTask
.Subject = sSubject
.Body = sBody
'Reminder Settings
.ReminderSet = True
'Remind 2 hours prior to the due date
.ReminderTime = DateAdd("n", -120, DueDt)
'.ReminderPlaySound = True
'.ReminderSoundFile = "C:\WINNT\Media\Ding.wav"
'Due Date Settings
.DueDate = DueDt
Debug.Print
.Save
End With
Set olTask = Nothing
Set olApp = Nothing
I would need some help because the user can change the due date and as such
I need to be able to edit the task once it is created. Thus, I thought and
you can tell me otherwise, that at creation time I would return the Task
EntryId and store it with the database data and if changes occur use it to
reference the task and apply changes.
The problem is that I have tried to get the EntryID and it is always empty?
Is my approach wrong or am I doing something wrong?
Thank you
QB
Dim olApp As Outlook.Application
Dim olTask As Outlook.TaskItem
Set olApp = CreateObject("Outlook.Application")
Set olTask = olApp.CreateItem(olTaskItem)
With olTask
.Subject = sSubject
.Body = sBody
'Reminder Settings
.ReminderSet = True
'Remind 2 hours prior to the due date
.ReminderTime = DateAdd("n", -120, DueDt)
'.ReminderPlaySound = True
'.ReminderSoundFile = "C:\WINNT\Media\Ding.wav"
'Due Date Settings
.DueDate = DueDt
Debug.Print
.Save
End With
Set olTask = Nothing
Set olApp = Nothing
I would need some help because the user can change the due date and as such
I need to be able to edit the task once it is created. Thus, I thought and
you can tell me otherwise, that at creation time I would return the Task
EntryId and store it with the database data and if changes occur use it to
reference the task and apply changes.
The problem is that I have tried to get the EntryID and it is always empty?
Is my approach wrong or am I doing something wrong?
Thank you
QB