G
Guest
I have an Access 2000 application that needs to use Outlook to send messages.
I have included the MSOUTL.OLB in my setup distribution and it is placed in
the System32 directory of windows. When I run the .mde file and attempt to
use the Outlook to send a mail message I get: Error in Loading DLL, Runtime
error 48. Any assistance would be greatly appreciated.
The VB code looks like:
Dim objOLApp As Outlook.Application
Dim myItem As Variant
Dim Subject As String, Message As String, GenericAcct As String
Subject = "Mysubject"
Message = "Mymessage"
Set objOLApp = New Outlook.Application
Set myItem = objOLApp.CreateItem(olMailItem)
myItem.SentOnBehalfOfName = GenericAcct
myItem.To = EmailTo
myItem.Subject = Subject
myItem.Body = Message
myItem.Send
I have included the MSOUTL.OLB in my setup distribution and it is placed in
the System32 directory of windows. When I run the .mde file and attempt to
use the Outlook to send a mail message I get: Error in Loading DLL, Runtime
error 48. Any assistance would be greatly appreciated.
The VB code looks like:
Dim objOLApp As Outlook.Application
Dim myItem As Variant
Dim Subject As String, Message As String, GenericAcct As String
Subject = "Mysubject"
Message = "Mymessage"
Set objOLApp = New Outlook.Application
Set myItem = objOLApp.CreateItem(olMailItem)
myItem.SentOnBehalfOfName = GenericAcct
myItem.To = EmailTo
myItem.Subject = Subject
myItem.Body = Message
myItem.Send