Outlook Import (1 Viewer)

cowboymb

Registered User.
Local time
Today, 08:06
Joined
Oct 8, 2011
Messages
11
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

Duly Registered Boozer
Local time
Today, 06:06
Joined
Apr 30, 2011
Messages
1,808
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

Registered User.
Local time
Today, 08:06
Joined
Oct 8, 2011
Messages
11
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.
 

Users who are viewing this thread

Top Bottom