473,408 Members | 1,601 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,408 software developers and data experts.

How to start the default email program WITHOUT sending a message

There is plenty of VBA code around that allows you send email
messages. Does anyone know where I can see a sample of VBA code or a
technique that only opens the default email program and then waits for
user input? For example, a VBA technique that simulates
double-clicking on an email desktop icon or opening something from a
program group. I am using Access 97 in a runtime environment.

Any and all help is greatly appreciated.

TC
Nov 13 '05 #1
6 3728
try

Dim stAppName As String

stAppName = "C:\Program Files\Microsoft Office\Office\OUTLOOK.EXE"
Call Shell(stAppName, 1)

neil

Tony Ciconte <to******@comcast.net> wrote in message news:<qc********************************@4ax.com>. ..
There is plenty of VBA code around that allows you send email
messages. Does anyone know where I can see a sample of VBA code or a
technique that only opens the default email program and then waits for
user input? For example, a VBA technique that simulates
double-clicking on an email desktop icon or opening something from a
program group. I am using Access 97 in a runtime environment.

Any and all help is greatly appreciated.

TC

Nov 13 '05 #2
On Sun, 28 Nov 2004 07:35:15 -0500, Tony Ciconte
<to******@comcast.net> wrote:
There is plenty of VBA code around that allows you send email
messages. Does anyone know where I can see a sample of VBA code or a
technique that only opens the default email program and then waits for
user input? For example, a VBA technique that simulates
double-clicking on an email desktop icon or opening something from a
program group. I am using Access 97 in a runtime environment.

Any and all help is greatly appreciated.

TC


Hi
Docmd.Sendobject with no arguments should bring up the default email
client.
You could also open a MAPI session (assuming that the client is MAPI
compatible) but finding the default profile is a hassle. Search Google
for Q171422.
-David
Nov 13 '05 #3
Thanks to both Neil and David. This what I was looking for.

TC

d.***************@blueyonder.co.uk (David Schofield) wrote:
On Sun, 28 Nov 2004 07:35:15 -0500, Tony Ciconte
<to******@comcast.net> wrote:
There is plenty of VBA code around that allows you send email
messages. Does anyone know where I can see a sample of VBA code or a
technique that only opens the default email program and then waits for
user input? For example, a VBA technique that simulates
double-clicking on an email desktop icon or opening something from a
program group. I am using Access 97 in a runtime environment.

Any and all help is greatly appreciated.

TC


Hi
Docmd.Sendobject with no arguments should bring up the default email
client.
You could also open a MAPI session (assuming that the client is MAPI
compatible) but finding the default profile is a hassle. Search Google
for Q171422.
-David


Nov 13 '05 #4
On Sun, 28 Nov 2004 07:35:15 -0500, Tony Ciconte
<to******@comcast.net> wrote:
There is plenty of VBA code around that allows you send email
messages. Does anyone know where I can see a sample of VBA code or a
technique that only opens the default email program and then waits for
user input? For example, a VBA technique that simulates
double-clicking on an email desktop icon or opening something from a
program group. I am using Access 97 in a runtime environment.

Any and all help is greatly appreciated.

TC


Hi
Docmd.SendObject without arguments should bring up the default email
program. However there are some limitations in using sendobject for
mail. See Tont Toews web site.

You could also open a simple MAPI session (assuming the mailer is
MAPI compliant) but it is a hassle finding the default profile - there
is a KB article on this (seach google for Q171422)

David

Nov 13 '05 #5
d.***************@blueyonder.co.uk (David Schofield) wrote:
Docmd.SendObject without arguments should bring up the default email
program. However there are some limitations in using sendobject for
mail. See Tont Toews web site.


FWIW SendObject's twenty limitations
http://www.granite.ab.ca/access/email/sendobject.htm

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 13 '05 #6

"Tony Toews" <tt****@telusplanet.net>
???????:5t********************************@4ax.com ...
d.***************@blueyonder.co.uk (David Schofield) wrote:
Docmd.SendObject without arguments should bring up the default email
program. However there are some limitations in using sendobject for
mail. See Tont Toews web site.


FWIW SendObject's twenty limitations
http://www.granite.ab.ca/access/email/sendobject.htm

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm

Nov 13 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
10
by: jand187 | last post by:
Hi, I need to open an email in outlook (exchange) with most of the fields filled out and a file attached. I don't want to send the mail right away as the user must be able to edit the body text....
1
by: Wayne Wengert | last post by:
I am building an aspx page on which I want to have a button, which when clicked opens the user's default email component (Outlook, OE, etc.). I searching the web I found the codes shown below but...
21
by: Dino M. Buljubasic | last post by:
I'd like my application to be able to detect default email application (MS Outlook or whichever is set to be default) so that the user can enter the email body, address, subject line and send the...
3
by: Jason | last post by:
I'm writing a simple EXE in VB.NET to be run on our intranet (Win2K network, XP machines). When it's done running I want to notify the user via email. I've got the email working...how do I...
1
by: Jozef | last post by:
Hello, I have a client that just switched to Windows 2003 server. Their website has always run fine under Windows 2000, using an email program queue_manager.exe to send order and support emails...
3
by: trynittee | last post by:
Hello, Thank you so much in advance to those who will take the time to read and answer. This group is a wonderful site. I have inherited a contacts database that sits on a server. Users...
3
by: Mateusz Rajca | last post by:
Hello! How do I open the default email client, and attach a file? Matt
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.