K
KayVeeW
Hello
I have created a task in Outlook Public Folders from Access, except some of
the fields are not set correctly, namely 'Importance'
.Importance = Medium
or
.Importance = High
Just gives me Importance = Low.
And even though I have a Reminder date the flag is not set and therefore no
reminder is generated. If I manually set the flag then the owner, which can
be different to the one creating the task, this does not work either. During
testing I have set the folder permissions as me being the owner and I created
tasks for myself to rule out permissions etc.
Code:
Set olns = ol.GetNamespace("MAPI")
Set cf = olns.GetDefaultFolder(olPublicFoldersAllPublicFolders)
Set cc = cf.Folders("Customer Service Task")
With cc.Items.Add(olTaskItem)
.Owner = "Victoria Wild" (works)
.Subject = "This is the subject of my task" (works)
.Body = "This is the body of my task." (works)
.ReminderSet = True (don't work)
.StartDate = Now (works)
.DueDate = datCal 'Date from calendar control in form (works)
.Importance = Medium (don't work)
..Save
End With
Any ideas anyone?
I have created a task in Outlook Public Folders from Access, except some of
the fields are not set correctly, namely 'Importance'
.Importance = Medium
or
.Importance = High
Just gives me Importance = Low.
And even though I have a Reminder date the flag is not set and therefore no
reminder is generated. If I manually set the flag then the owner, which can
be different to the one creating the task, this does not work either. During
testing I have set the folder permissions as me being the owner and I created
tasks for myself to rule out permissions etc.
Code:
Set olns = ol.GetNamespace("MAPI")
Set cf = olns.GetDefaultFolder(olPublicFoldersAllPublicFolders)
Set cc = cf.Folders("Customer Service Task")
With cc.Items.Add(olTaskItem)
.Owner = "Victoria Wild" (works)
.Subject = "This is the subject of my task" (works)
.Body = "This is the body of my task." (works)
.ReminderSet = True (don't work)
.StartDate = Now (works)
.DueDate = datCal 'Date from calendar control in form (works)
.Importance = Medium (don't work)
..Save
End With
Any ideas anyone?