A
ARC
Thanks again, Bill R, for helping me get Outlook to load from my last post!
Now that I'm testing, I'm trying to use the automation code below to create
a message from Access 2007. I have the MS Outlook 12 Library referenced in
my code. I have the following code:
Dim objOutlook As Outlook.Application
Dim objOutlookMsg As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient
Dim objOutlookAttach As Outlook.Attachment
Set objOutlook = CreateObject("Outlook.Application")
' Create the message.
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
Set objOutlookRecip = .Recipients.Add(SendAddr)
I put a break, and stepped through. On the last line, the "Set ojbOutlook
Recip = .recipients.add(SendAddr)" statment, the code is bombing with an
error 287 "Application Defined or Object-Defined error..."
Any ideas?
Thanks!
Now that I'm testing, I'm trying to use the automation code below to create
a message from Access 2007. I have the MS Outlook 12 Library referenced in
my code. I have the following code:
Dim objOutlook As Outlook.Application
Dim objOutlookMsg As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient
Dim objOutlookAttach As Outlook.Attachment
Set objOutlook = CreateObject("Outlook.Application")
' Create the message.
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
With objOutlookMsg
Set objOutlookRecip = .Recipients.Add(SendAddr)
I put a break, and stepped through. On the last line, the "Set ojbOutlook
Recip = .recipients.add(SendAddr)" statment, the code is bombing with an
error 287 "Application Defined or Object-Defined error..."
Any ideas?
Thanks!