Outlook Security Manager in MS Access problem

Add-in Express™ Support Service
That's what is more important than anything else

Outlook Security Manager in MS Access problem
I can't get OSM to run within MS Access 
Ted Kennedy




Posts: 2
Joined: 2011-10-25
I'm trying to use MS Access 2007 to send messages using Outlook 2010. I have this code:

Dim SecurityManager As AddInExpress.OutlookSecurityManager
Set objOutlook = CreateObject("Outlook.Application")
SecurityManager.ConnectTo objOutlook <== I get an error right here
SecurityManager.DisableOOMWarnings = True

The error is: 'Object variable or With block variable not set'

I am running Windows 7 (64-bit), and Outlook 2010 (64-bit)
I believe Access 2007 is 32-bit, but I can't see that specified anywhere
I registered both the osmax64.ocx and secman64.dll
In my Access References, I have 'Outlook Security manager Component' and 'secman64Lib' both checked

Any ideas what is causing this?
Do I need to use Access 2010? (This would cause other issues on my machine).
Posted 25 Oct, 2011 19:48:49 Top
Renat Tlebaldziyeu


Add-in Express team


Posts: 132
Joined: 2010-02-15
Hello Ted,

Could you please try to replace the following line in your code:
SecurityManager.ConnectTo objOutlook
with
SecurityManager.ConnectTo objOutlook.Application

Did it help?
Posted 26 Oct, 2011 02:17:55 Top
Ted Kennedy




Posts: 2
Joined: 2011-10-25
Renat,
I tried making the change you mentioned, but I get the same error: 'Object variable or With block variable not set'.
Posted 26 Oct, 2011 09:22:42 Top
Renat Tlebaldziyeu


Add-in Express team


Posts: 132
Joined: 2010-02-15
Hi Ted,

Please try to register both secman.dll and secman64.dll on that PC manually using the following command lines:
regsvr32 <path to secman.dll>
regsvr32 <path to secman64.dll>
Does it fix the issue?
Posted 26 Oct, 2011 09:36:59 Top