Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Solution to original question worked for Outlook but does not appear to work for Outlook Express. Any suggestions?

Posted on 2011-03-25
4
Medium Priority
?
412 Views
Last Modified: 2012-05-11
My original question was how to avoid the "Outlook Security Warning" message asking the user to "Allow" or "Deny" every single e-mail being created by an Access (.ADP Project) application.

The solution was to change from my original "DoCmd.SendObject" method to using a "CreateObject("outlook.application")" method in conjunction with MAPILab's "Advanced Security for Outook" add-in.

Although this seemed to work a treat on my development laptop, where I have a full copy of Outlook, it does not appear to work on my client's PCs where they tend to only have Outlook Express.
At the "CreateObject("outlook.application")" step in the VBA code, they are getting the error message :
Error Number : 429
Error Description : ActiveX component can't create object

Is a full version of Outlook required for this method?
Is there an alternative that can be suggested that would also work with Outlook Express?

Many thanks.
Colin.

0
Comment
Question by:colinasad
  • 2
  • 2
4 Comments
 
LVL 85
ID: 35213909
You can't automate Outlook Express. MapiLabs only works with the full version of Outlook.

You can use MAPI automation, or CDO - but not OE.

0
 

Author Comment

by:colinasad
ID: 35213976
Thanks for the prompt response, LSMConsulting.

Apologies for appearing a bit thick here, but can you just confirm my understanding of what you are saying?
"OE" (Outlook Express ?) cannot be automated in the way the full Outlook program can?
Users with Outlook Express cannot avoid the "Allow / Deny" "Outlook Security Warning" when I try to send an e-mail from an Access application?

Regards. Colin.
0
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 total points
ID: 35214027
Outlook Express cannot be automated. You cannot use CreateObject("OutlookExpress"), for example. There are not creatable objects exposed by OE.

The only "kludge" that I know of to semi-automate the process of sending an email is here:

http://www.vb-helper.com/howto_send_outlook_express_attachment.html

It relies on SendKeys, which is notoriously unreliable, so use this at your own discretion.

Personally, I'd tell the client that you can't do this. You'll end up with a frustrated client, and dropped/missed emails. Better to "cut the cord" up front than to try and explain why the utility that you built (and they paid for) doesn't work.
0
 

Author Closing Comment

by:colinasad
ID: 35214390
Thanks, LSMConsulting.
I just wanted to be sure I wasn't missing anything. My client will accept that somethings can be done and others can't.
Many thanks.
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question