Creating an Outlook object. A missing refernce?

  • Thread starter Thread starter Simon Harvey
  • Start date Start date
S

Simon Harvey

Hi,

I'm having a really stupid problem here. I ma trying to create a new Outlook
object so that I can do things to it.
However, I can't tell if its working or not because my code compiles fine,
but intellisence isnt working. The code is as follows in an access database:

Option Compare Database

Public Sub activate()
Set myOlApp = CreateObject("Outlook.Application")

End Sub


If I were to then try and start typing myOlApp or even Outlook. - I dont get
any help. Is this right. I dont much fancy having to program using app
objects that don't have intellisense enabled.

Have i missed a reference or something? Please please tell me I have !

Thanks everyone

Simon
 
I think you just need to add the reference to the outlook
object in Access. Start by opening a module. Then select
Tools/Reference from the menu bar. Select Microsoft Office
10.0 Object Library. This should allow intellisense to
work.
 
Back
Top