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 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
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
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
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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,...
|
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...
|
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...
|
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...
| |