D
Doug
I need to create an email message using VBA from Access. I want to create
the message and enter the 'To:', but let the user then enter the subject,
body, and send the email. When I try the code below, Outlook is never
visible so the user cannot complete the message. Can someone help me?
' Create the Outlook session.
Set objOutlook = CreateObject("Outlook.Application")
' Create the message.
Set objOutlookMsg = objOutlook.CreateItem(0) '(olMailItem)
With objOutlookMsg
If strrecipients <> "" Then
objOutlookMsg.to = strrecipients
End If
End With
the message and enter the 'To:', but let the user then enter the subject,
body, and send the email. When I try the code below, Outlook is never
visible so the user cannot complete the message. Can someone help me?
' Create the Outlook session.
Set objOutlook = CreateObject("Outlook.Application")
' Create the message.
Set objOutlookMsg = objOutlook.CreateItem(0) '(olMailItem)
With objOutlookMsg
If strrecipients <> "" Then
objOutlookMsg.to = strrecipients
End If
End With