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

Automatic Email linking

Hi all, I wonder if anyone can help me with this please. I have set up forms
on my database, one of the fields contains details of e-mail addresses. I am
trying to create a link so that when I click on a particular email address,
it automatically opens Outlook, creates a new message with that person's
email address already in the To: box. So far, with a simple macro, all I
have been able to do is get Otlook to open at my default page. Any idea how
I could do this please? I presume it will involve a lot of coding, I've done
very little of this, so please treat me as a dummy at this! Thanks

--
Message posted via http://www.accessmonster.com

Jan 17 '07 #1
6 2082
Tazzy via AccessMonster.com wrote:
Hi all, I wonder if anyone can help me with this please. I have set
up forms on my database, one of the fields contains details of e-mail
addresses. I am trying to create a link so that when I click on a
particular email address, it automatically opens Outlook, creates a
new message with that person's email address already in the To: box.
So far, with a simple macro, all I have been able to do is get Otlook
to open at my default page. Any idea how I could do this please? I
presume it will involve a lot of coding, I've done very little of
this, so please treat me as a dummy at this! Thanks
Exactly one line of code actually...

DoCmd.SendObject acSendNoObject, , , Me!FieldName

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Jan 17 '07 #2
Hi Rick,

Thanks for that.......could you please tell me where and how I put the line
though; would it be editing the simple macro I already have set up? I went
through a type of macro wizard from the main Objects page,

Tazzy

Rick Brandt wrote:
>Hi all, I wonder if anyone can help me with this please. I have set
up forms on my database, one of the fields contains details of e-mail
[quoted text clipped - 5 lines]
>presume it will involve a lot of coding, I've done very little of
this, so please treat me as a dummy at this! Thanks

Exactly one line of code actually...

DoCmd.SendObject acSendNoObject, , , Me!FieldName
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200701/1

Jan 17 '07 #3
Tazzy via AccessMonster.com wrote:
Hi Rick,

Thanks for that.......could you please tell me where and how I put
the line though; would it be editing the simple macro I already have
set up? I went through a type of macro wizard from the main Objects
page,
Sorry, I never use macros so I am not very familiar with them. In the
events tab of the property sheet where you cyurrently have the name of your
macro replace that with [Event Procedure] then press thge build button to
the right [...].

That will take open the VBA editor with the cursor pre-positioned where that
line of code needs to go.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Jan 17 '07 #4
Hi Rick,

Thanks for explaining that, I will know eher to start things off in future. :-
)

I entered the code in, and I figured that where it says MeField Name, then I
replace it with the field name from my form, i.e e-mail. I did this and
saved the event, but when I had saved the form, then clicked on the e-mail
address displayed, first it asked me to name a profile in Outlook (something
I never have had come up before), so I clicked on OK, Outlook opens, a new e-
mail message is brought up ( so far, so good) but all it displayed in the To:
box was 0.

I wouldn't have thought that I would need to enter the e-mail address into
the coding, so I'm not too sure where I've gone wrong. Could you please help
me any further?

Many Thanks,

Tazzy

Rick Brandt wrote:
>Hi Rick,

Thanks for that.......could you please tell me where and how I put
the line though; would it be editing the simple macro I already have
set up? I went through a type of macro wizard from the main Objects
page,

Sorry, I never use macros so I am not very familiar with them. In the
events tab of the property sheet where you cyurrently have the name of your
macro replace that with [Event Procedure] then press thge build button to
the right [...].

That will take open the VBA editor with the cursor pre-positioned where that
line of code needs to go.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200701/1

Jan 18 '07 #5
Tazzy:

You should have replaced FieldName with the name of your email field,
and left the Me! in front of it.

That should do it!
Jana

Tazzy via AccessMonster.com wrote:
Hi Rick,

Thanks for explaining that, I will know eher to start things off in future. :-
)

I entered the code in, and I figured that where it says MeField Name, then I
replace it with the field name from my form, i.e e-mail. I did this and
saved the event, but when I had saved the form, then clicked on the e-mail
address displayed, first it asked me to name a profile in Outlook (something
I never have had come up before), so I clicked on OK, Outlook opens, a new e-
mail message is brought up ( so far, so good) but all it displayed in the To:
box was 0.

I wouldn't have thought that I would need to enter the e-mail address into
the coding, so I'm not too sure where I've gone wrong. Could you please help
me any further?

Many Thanks,

Tazzy

Rick Brandt wrote:
Hi Rick,

Thanks for that.......could you please tell me where and how I put
the line though; would it be editing the simple macro I already have
set up? I went through a type of macro wizard from the main Objects
page,
Sorry, I never use macros so I am not very familiar with them. In the
events tab of the property sheet where you cyurrently have the name of your
macro replace that with [Event Procedure] then press thge build button to
the right [...].

That will take open the VBA editor with the cursor pre-positioned where that
line of code needs to go.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200701/1
Jan 18 '07 #6
Hi Jana,

Yippee - it works, thank you so much to you both for your help. Sorry for
the late reply, high winds here sent the power cables down for 10 hours!

Tazzy

Jana wrote:
>Tazzy:

You should have replaced FieldName with the name of your email field,
and left the Me! in front of it.

That should do it!
Jana
>Hi Rick,
[quoted text clipped - 35 lines]
>Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200701/1
--
Message posted via http://www.accessmonster.com

Jan 18 '07 #7

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

Similar topics

0
by: Rasmus Fogh | last post by:
Someone raised the question of automatic code generation a few weeks back. And yes, we (CCPN) are using automatic Python code generation in a major way. Basically we are making data models in...
1
by: raqfg | last post by:
Hi. I am trying to test out the automatic maintanance with notification feature of DB2 v8.2. I have enabled the auto maint with notification. The problem I am facing is that I only get email...
1
by: Rene Crespo | last post by:
Hello, Sorry about the length of this explanation! I am using Access 2000 to assist an export sales department keep track of its weekly offers of products to clients. The database already...
29
by: Natan | last post by:
When you create and aspx page, this is generated by default: using System; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Text; using...
1
by: Michel Esber | last post by:
Hello, Linux RedHat AS4 running DB2 V8 FP11. I have followed the docs at http://tinyurl.com/qckrn and enabled automatic statistics collection. It has been 2 days since I updated my DB cfg and...
1
by: buchalino | last post by:
Hi Guys, Please can someone help me, I am having a linking problem . I am writing a socket program, the problem is just the linking . I am using VC++ In the process of the problem, I...
58
by: Jorge Peixoto de Morais Neto | last post by:
I was reading the code of FFmpeg and it seems that they use malloc just too much. The problems and dangers of malloc are widely known. Malloc also has some overhead (although I don't know what is...
3
by: myjish18 | last post by:
Hello, We have a DB2 UDB database v8.2.7 (db2 v8.2 fixpak 14) on AIX 5.3 which has Automatic Storage (AS) enabled. We want to disable automatic storage on entire database and/or disable...
3
by: EllieT | last post by:
Hi all, I've been fiddling around with creating a new database (Access 2003, Windows XP) for work the past two weeks and am having trouble defining my own customized (yet still automatic) primary...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.