473,473 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

E-mailing from Access

I'm looking for some help on setting up a form that will send automated
e-mails through groupwise. I am a novice at codeing and really need a
cut and paste type response. I've had people in the past try and help
me, but nothing has worked thus far. I've been trying to get this to
work for several years now. I know there may be some resources (found
as a manu item when creating a module) required, but I'm not sure which
ones and how to tie them in. Here is what I need.

I will have a form set-up with fields that contain all of the
recepients of the e-mail, e-mail's addresses in them. The message will
be a standard message saying something to the effect "This task has
been completed." This can either be hard coded or I can make another
field with the message as the default. I will have a command button on
the form so that once the user hits the command button saying the task
is completed, the correct people will rec've the automated e-mail.

I would really, greatly appreciate any help or assistance some one can
provide me. I know this is not an easy task, but it is crucial to what
I want to accomplish in my database.
Thank you very much for all those who respond.

Regards,
Chris

Nov 13 '05 #1
1 1389
I've just done something similar where several reports are sent.

What I did was create a table called tbl_mail_recipients which had fields:
to - text (name)
address - text (e-mail address)
george_report - yes/no
supplier_report - yes/no

I then created a query [qry_george_list] on this table which returns all the
email addresses which have the field [george_report] marked as true

SELECT tbl_mail_recipients.address
FROM tbl_mail_recipients
WHERE (((tbl_mail_recipients.[george report])=True))
GROUP BY tbl_mail_recipients.address
WITH OWNERACCESS OPTION;
I then have a command button with an on_click event proceedure. The code for
this proceedure is as follows: **Note** this code it attaching the results
of a query as an Excel doc. If you just wanted to send a mail, you would
have to play with the sendobject part.

Dim rstML As New ADODB.Recordset
Dim strList As String
rstML.Open "qry_george_list", CurrentProject.Connection, adOpenStatic,
adLockReadOnly
Do Until rstML.EOF
strList = strList & rstML!address & "; " 'replace email address with
the field you use!
rstML.MoveNext
Loop
rstML.Close
Set rstML = Nothing
strList = Left(strList, Len(strList) - 2) 'cut off the last ; and Space

DoCmd.SendObject acSendQuery, "qry_george_rpt", acFormatXLS, _
strList, , , "Yesterdays Delivery Report", _
"Please find attached yesterdays delivery log" & vbCrLf & _
"" & vbCrLf & _
"Regards," & vbCrLf & _
"" & vbCrLf & _
"Brackmills Receivers", False

Regards,

Mark

"chris" <ch**********@yahoo.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
I'm looking for some help on setting up a form that will send automated
e-mails through groupwise. I am a novice at codeing and really need a
cut and paste type response. I've had people in the past try and help
me, but nothing has worked thus far. I've been trying to get this to
work for several years now. I know there may be some resources (found
as a manu item when creating a module) required, but I'm not sure which
ones and how to tie them in. Here is what I need.

I will have a form set-up with fields that contain all of the
recepients of the e-mail, e-mail's addresses in them. The message will
be a standard message saying something to the effect "This task has
been completed." This can either be hard coded or I can make another
field with the message as the default. I will have a command button on
the form so that once the user hits the command button saying the task
is completed, the correct people will rec've the automated e-mail.

I would really, greatly appreciate any help or assistance some one can
provide me. I know this is not an easy task, but it is crucial to what
I want to accomplish in my database.
Thank you very much for all those who respond.

Regards,
Chris

Nov 13 '05 #2

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

Similar topics

2
by: jason | last post by:
What are the technical challenges in getting a local SMTP email server set up on a win3k system or alternatively on a win2k pro local work statation. We are on the verge of acquiring a new win3k...
9
by: Brendan MAther | last post by:
I have a table called Contact_Info. I have a form that allows me to show all the contacts from a specified city and sector. Once these contacts appear on my new form I would like to be able to...
2
by: Chuck | last post by:
I have a database that has a table in it with employee information (name, dob, email, etc). This is joined to a table that has tasks that are assigned to each individual that has a recurring date....
5
by: Colin Anderson | last post by:
I discovered, with great excitement, this article http://www.davison.uk.net/vb2notes.asp when researching methods for emailing from Access via Notes. Unfortunatly, when I run this I get a...
3
by: Strasser | last post by:
In Access2000 mass emailing worked perfectly (very powerful tool!). Doesn't work when using XP version of both Access and Outlook, even though I checked the box to ensure that I was sending the...
0
by: Alan | last post by:
Hello World: I'm trying to build an application (using Access 2003) that will allow users who have to perform tasks in a particular order, to notify the next person in line when their task is...
2
by: Tim Hunter | last post by:
I have two questions regarding emailing from Access. My first question relates to how many email addresses is too much. I have a client who wants to email 1500 people at once. Is this possible or...
5
by: szag via AccessMonster.com | last post by:
First - I don't know VBA very well at all. I have report that I want to email to multiple users that give them the quantities of their Inventory parts only. So I need something that will loop...
8
by: marjbell | last post by:
I have a Access database of email addresses that I would like to mass email to customers. Can Access be used through Outlook? or can it just be done with Access? I know it is possible to use...
0
by: munkee | last post by:
All, I think I already partially know the answer here or atleast a solution to my problem but I want to be sure there is not an easier way and then secondly whether my "idea" is viable. Firstly...
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
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...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.