I am trying to send emails with attachments and have seen this block of code mentioned several times.
Dim outApp As Outlook.Application
Dim outMessage As Outlook.MailItem
Set outApp = CreateObject("Outlook.application"
Set outMessage = outApp.CreateItem(olMailItem)
However, when it runs it does not know what Outlook.Application is. It also does nt know olMailItem. Is there something that has to be installed? If so where can I find it? I am using Access 2000.
Dim outApp As Outlook.Application
Dim outMessage As Outlook.MailItem
Set outApp = CreateObject("Outlook.application"
Set outMessage = outApp.CreateItem(olMailItem)
However, when it runs it does not know what Outlook.Application is. It also does nt know olMailItem. Is there something that has to be installed? If so where can I find it? I am using Access 2000.