E eyalco Registered User. Local time Today, 02:16 Joined Jul 24, 2007 Messages 50 Sep 20, 2007 #1 I'm trying to run e-mail messages from access but it stops on debugging on that line in my code : "Dim objOL As New Outlook.Application" Click to expand... What is wrong pls?
I'm trying to run e-mail messages from access but it stops on debugging on that line in my code : "Dim objOL As New Outlook.Application" Click to expand... What is wrong pls?
chergh blah Local time Today, 10:16 Joined Jun 15, 2004 Messages 1,414 Sep 20, 2007 #2 Have you included the Microsoft Outlook object library in your references?
E eyalco Registered User. Local time Today, 02:16 Joined Jul 24, 2007 Messages 50 Sep 20, 2007 #3 Have you included the Microsoft Outlook object library in your references? Click to expand... Not sure I know how. Here's what I wrote there : Private Sub send_Click() On Error GoTo Err_send_Click Dim Dbs As Database Dim Rst As Recordset Dim objOL As New Outlook.Application Dim objMail As MailItem Dim body1 As Variant Dim DistributeList, STR As Variant Click to expand... anythin missing?
Have you included the Microsoft Outlook object library in your references? Click to expand... Not sure I know how. Here's what I wrote there : Private Sub send_Click() On Error GoTo Err_send_Click Dim Dbs As Database Dim Rst As Recordset Dim objOL As New Outlook.Application Dim objMail As MailItem Dim body1 As Variant Dim DistributeList, STR As Variant Click to expand... anythin missing?
chergh blah Local time Today, 10:16 Joined Jun 15, 2004 Messages 1,414 Sep 20, 2007 #4 Yes go to the tools menu and select references and check the reference for "Microsoft Outlook Object Library"
Yes go to the tools menu and select references and check the reference for "Microsoft Outlook Object Library"