473,325 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

MS Outlook not starting?

489 256MB
I've had a email field setup that if the user double clicked it would start MS Outlook with the email address in the Mailto field. This worked great when I was using MS Outlook 2007, now that I've upgraded to MS Outlook 2016 this option doesn't work anymore. I get the message Cannot start Microsoft Office Outlook, This happens on my machine not sure about clients unless they have MS Outlook 2016. Here's the code I'm using.
Expand|Select|Wrap|Line Numbers
  1.     If IsNull(email) Then
  2.         Me.email.SelStart = 0
  3.     Else
  4.         vto = "mailto:" & email
  5.         Valias = Alias
  6.         vlinef = Chr(10)
  7.         Application.FollowHyperlink vto
  8.     End If
  9.  
Thanks for any help.
Dec 27 '15 #1
2 1199
zmbd
5,501 Expert Mod 4TB
Personally, I find the hyperlink fields to be a great nuisance due to issue such as this...

+ You should double check the format of your hyperlink, could be that there is something wrong in the syntax - I don't expect this to be the root cause; however, it's the easiest first step to check.

+ You don't say this, however, I get the impression that you have one version of Access and a different version of Outlook and that could be the issue. Different versions do not always play well with each other.

+ For very simple emails, What I usually do is setup a control that feeds the current record email to:
DoCmd.SendObject acSendNoObject, , , [EMailAddress]
This is a little more bullet-proof than using a hyperlink file.

If you will search here on Bytes.com there are several threads dealing with sending emails via outlook and other methods. Indeed our application automation article provides a basic implementation of such code for outlook:

home > topics > microsoft access / vba > insights > application automation
Dec 27 '15 #2
NeoPa
32,556 Expert Mod 16PB
I've had a similar issue where the file associations were not set up correctly for the new version of Outlook. Check your systems for this.

Start | Default Programs | Set your Default Programs.
Select your required version of MS Outlook and then :
Choose defaults for this program.

You'll see MailTo in there and it needs to be set if you want it to work properly.

Good luck :-)
Dec 30 '15 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: sudheer | last post by:
Hi, Thank you in advance. I need to devlop an application, which reads the outlook inbox messages and appends some additional message to the read messages. I want to know is it possible to do...
4
by: Greg | last post by:
Hi. I am writing an INTRAnet app using asp.net/VB that, amongst other things, needs to access the global address list in Outlook, extract some email addresses and send email to these people. ...
3
by: Curious George the Monkey | last post by:
Hi, I have about 20,000 emails of which about 1% of them have attached word, excel, jpeg, pdf, powerpoint files. The emails are located in about 1000 folders. The hierachy of folders is...
6
by: Adam Clauss | last post by:
I would like to create a plugin for Outlook Express using C# (could also use C++ if it is not available in C#). Any ideas on how I would go about starting this? Thanks!
10
by: John | last post by:
Hi When I open a new outlook email from vb.net, sometimes outlook is very slow to appear or occasionally outlook freezes completely. I am targeting mixed office2000/xp environments so I am...
2
by: Stefan | last post by:
Hello, at the moment i'm exporting outlook contacts to .csv files and then import the file into a sql contact table. i do this only once, so the inputter has to add new contacts twice. Now i...
1
by: Crash | last post by:
I am having a tough time finding documentation on DASL! 1) What the heck does DASL stand for - I can't even find any documentation on that? Anyway, I would like to integrate a DASL query into my...
4
by: Brian Hampson | last post by:
I recently upgraded to Outlook 2007 B2TR and have found that I can no longer code against MAPI.DLL It's gone :( Using C#, I used to get the MAPI session, and from that I could change the out of...
0
by: RodneyAnonymous | last post by:
I need to be able to put the contents of a RichTextBox, including formatting and images, into a new Outlook e-mail. So far, the results I have are either that I lose all formatting and keep only the...
4
by: ndedhia1 | last post by:
I have an issue where I have a GUI that I created, that updates every time a new line is added to a log file that I am tailing. If the GUI does not have focus, it is supposed to flash in the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.