Access World Forums

Access World Forums (https://www.access-programmers.co.uk/forums/index.php)
-   Forms (https://www.access-programmers.co.uk/forums/forumdisplay.php?f=9)
-   -   Outlook Import (https://www.access-programmers.co.uk/forums/showthread.php?t=217879)

cowboymb 11-04-2011 12:54 PM

Outlook Import
 
I have created an import of my e-mails in the Inbox. I tested it in a stand alone to make sure I could do it before adding it to my main database. When I added the code to my db it gave me an error of

Compile Error:

user defined type not defined.

Private Function Scanmail(SubjectLine As String)
Dim Inbox As Outlook.MAPIFolder
Dim OlApp As Outlook.Application

I did not get these errors when I had it in a database by itself.

What am I not doing correctly?

Thanks,

Mark

Beetle 11-04-2011 01:49 PM

Re: Outlook Import
 
The first thing to check would be your references (in the VBA window go to Tools/References). Make sure you have a reference set to the MS Outlook object library.

cowboymb 11-04-2011 06:09 PM

Re: Outlook Import
 
Quote:

Originally Posted by Beetle (Post 1110120)
The first thing to check would be your references (in the VBA window go to Tools/References). Make sure you have a reference set to the MS Outlook object library.


Thanks!!! It worked. I never turn the Outlook Library off so I don't know why it wouldn't work in both since I created both from scratch.


All times are GMT -8. The time now is 04:41 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World