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

E-Mailing A word attachment using Access

Hi:

Can someone point me in the right direction please?

I need to use Access to e mail a variable report (in Word) to a number of individuals.
Their names are in a table called Associates, and their e mail addresses are in a field
called "E-Mail". I am not certain how to set this all up so that I can treat the name of
the E-Mail, and the path for the attachment, as variables. In fact I am not certain how
the DoCmd.SendObject command works in this context, not having used it before.

We have Outlook 2000 and Access 2000.

Thanks for any help

Regards

John baker
Nov 13 '05 #1
4 1448
John Baker <Ba******@Verizon.net> wrote in message news:<q9********************************@4ax.com>. ..
Hi:

Can someone point me in the right direction please?

I need to use Access to e mail a variable report (in Word) to a number of individuals.
Their names are in a table called Associates, and their e mail addresses are in a field
called "E-Mail". I am not certain how to set this all up so that I can treat the name of
the E-Mail, and the path for the attachment, as variables. In fact I am not certain how
the DoCmd.SendObject command works in this context, not having used it before.

We have Outlook 2000 and Access 2000.

Thanks for any help

Regards

John baker

I don't think SendObject will let you do this very easily. I'd read
up on Tony Toew's site about e-mailing. If all your variable values
are in the table, then you could just automate Outlook, grab the
recipient e-mail address and the attachment path from the table, and
then send...

olkMsg.Attachments.Add(rs.Fields("AttachmentPath") )
olkMsg.Recipients.Add(rs.Fields("EMailAddress"))
olkMsg.Send
Nov 13 '05 #2
Thanks.

Where can I find out more about the command set you refer to:

olkMsg.Attachments.Add(rs.Fields("AttachmentPath") )
olkMsg.Recipients.Add(rs.Fields("EMailAddress"))
olkMsg.Send

I dont appear to be able to find anything in VBA help or in my documentation about olkMsg.

Thanks

John
Nov 13 '05 #3
John Baker <Ba******@Verizon.net> wrote:
Where can I find out more about the command set you refer to:


See Outlook specific links at the Microsoft Access Email FAQ
http://www.granite.ab.ca/access/email.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 #4
Thanks

John Baker

Tony Toews <tt****@telusplanet.net> wrote:
John Baker <Ba******@Verizon.net> wrote:
Where can I find out more about the command set you refer to:


See Outlook specific links at the Microsoft Access Email FAQ
http://www.granite.ab.ca/access/email.htm

Tony


Nov 13 '05 #5

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

Similar topics

3
by: bill mahoney | last post by:
Hello, I am using access 2000 and I am trying to email a csv file. I have only used the docmd.sendobject command but you can only email objects that are within the access database ( as far as I...
3
by: Prakash Wadhwani | last post by:
Hi !! I have been browsing around but have not been able to find a simple, lucid solution ... or maybe I'm just too confused. I know this has been asked before by many ... but pls bear with me. ...
7
by: Andy Davis | last post by:
I have a table of data in Access 2002 which is used as the source table for a mail merge document using Word 2002 on my clients PC. The data is transferred OK but I've noticed that any dates which...
0
by: Balakrsihna | last post by:
Hi All, Can anyone tell me how to replace an image in MS Word 2003 using c#.net. I am converting an html file to word doc and sending this as attachment using System.Web.Mail; the...
2
by: sqlboy2000 | last post by:
All, I've used the following code in several projects without issue: Response.ContentType = "Application/msword" Response.AddHeader ( "Content-Disposition", "attachment; filename=Report.doc" )...
1
by: Les Stout | last post by:
Good day all, I am very new to access and not a programmer! Is it possible to send a word document as an attachment from access. If yes could you please tell me how. thanks in advance for any...
2
by: newuser1980 | last post by:
Hey, I am in the process of writing some VBA code that will do the following: 1) Create and send an e-mail using Outlook with an excel file attached. The excel files are present in a specified...
0
by: kumar215 | last post by:
Hi All, How can we attach a file in VBA application using access. I have a form1 with button placed on it. On click of button I need to call another form2 from where I need to attach 10 files....
0
by: jesiecraig | last post by:
Hello, I am new to VBA programming - thank you for your help. I am using a form in Access 2007 to update my database. I use a submit button on the form to send all the values into Access. I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...

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.