B
burkejay
I have the following VBA code that uses MAPI to get a user's Appointments.
It generates the dreaded security access dialog, so i want to use CDO
instead, but I don't know how.
Dim ol As New Outlook.Application
Dim olns As Outlook.NameSpace
Dim recip As Outlook.Recipient
Dim rs As Recordset
Set olns = ol.GetNamespace("MAPI")
Set rs = CurrentDb.OpenRecordset("SELECT OUTLOOK_USERID FROM
USER_ACCOUNTS")
rs.OpenRecordset
Set recip = olns.CreateRecipient(rs!OUTLOOK_USERID)
recip.Resolve rem security prompt opens here.
How do I replace the CreateRecipient and resolve with CDO
objects instead?
Thanks!
It generates the dreaded security access dialog, so i want to use CDO
instead, but I don't know how.
Dim ol As New Outlook.Application
Dim olns As Outlook.NameSpace
Dim recip As Outlook.Recipient
Dim rs As Recordset
Set olns = ol.GetNamespace("MAPI")
Set rs = CurrentDb.OpenRecordset("SELECT OUTLOOK_USERID FROM
USER_ACCOUNTS")
rs.OpenRecordset
Set recip = olns.CreateRecipient(rs!OUTLOOK_USERID)
recip.Resolve rem security prompt opens here.
How do I replace the CreateRecipient and resolve with CDO
objects instead?
Thanks!