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

Access Query results to outlook

I am new to Access, but I find this answer a little difficult to
understand. I have an access query that list late work, I want to run
the query and let say the results is ten records. I want one email for
each record. The query has the name of the employee and the supervisor,
the title of the work and so on. I want the employee and supervisor to
be emailed. The name to email can be looked up from another table.

I see on MS sites such code as modules, SendMessage, and it works fine.
What I do not understand is how to get the results from the query
parsed (for each row) and sent that to the module? I think the parsed
row should be tokened and that would give me some of the email
information, email subject and body.

Hope I explained it... Any suggestions?

Douglas

Nov 17 '06 #1
4 3213
Have a look at the Email Senate sample database on his website which
does
exactly what you want:

===========================
http://www.datastrat.com/Download/EmailSenate2K.zip
BTW, this was recoded from an old database so many of the Senate email
addresses are no longer valid.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
===========================

Ron

Nov 17 '06 #2
MLH
I like the gyst of it. When I launched the process, I get an outlook
express compose window properly composed with the body text
and the HTML attached - but the To: field is void of any email
address. Looking at the code, I see that's that's exactly what it's
supposed to do. Its a useful app, no doubt about that. Of course,
one can easily cut 'n paste it email address from where it appears in
the body text or select it the usual way within OE. I like it!

I've used Lebans' PDF generator code a good bit to create reports
as PDF's that can be attached & sent. Has anyone modified (with
Arvin's permission, of course) this code to attach a PDF in a similar
fashion?

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

>Have a look at the Email Senate sample database on his website which
does
exactly what you want:

===========================
http://www.datastrat.com/Download/EmailSenate2K.zip
BTW, this was recoded from an old database so many of the Senate email
addresses are no longer valid.
Nov 17 '06 #3
Thanks Ron:

I downloaded it and played with it. It does generate an email from a
form. I was looking to do it from a query. I want to run a query and it
process all the records that are late and send email directly.

d
On Nov 17, 5:38 am, "Ron2006" <ronne...@hotmail.comwrote:
Have a look at the Email Senate sample database on his website which
does
exactly what you want:

===========================http://www.datastrat.com/Download/EmailSenate2K.zip

BTW, this was recoded from an old database so many of the Senate email
addresses are no longer valid.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:http://www.datastrat.comhttp://www.mvps.org/access
===========================

Ron
Nov 20 '06 #4
Hi Douglas
I downloaded it and played with it. It does generate an email from a
form. I was looking to do it from a query. I want to run a query and it
process all the records that are late and send email directly.
I wrote an Mail Assistant app that works via DDE to do just this.

http://balance-infosystems.com/products/mail.assistant/

Example code is

With MailAssistant
.connect
If Not .connected Then
' try launching
.launch
.connect
End If
If .connected Then
'.verboseOff
.serverName "default"
.serverAddress "your.smtp.server.ip.or.address"
.serverPort "25"
.preferencesSave
'.verboseOn
.templateName ("approval to proceed")
.newHTMLMessage
.addressedFrom "from.addr...@your.domain"
.addressedTo "to.addr...@clients.domain" ' multiple
addresses separated by commas
.copiedTo "interested.parties@domains" ' multiple
addresses separated by commas
.blindCopiedTo "audit.addres...@your.dormain" ' multiple
addresses separated by commas
.messageSubject "Artwork Approval And Order Confirmation
for Job Number [JOB NUMBER]"
.messageData "[JOB NUMBER=G52636],[DATE=26th, July
2007],[SENDER NAME=Mary Joseph],[RECEIVER NAME=Joseph Mary],[APPROVAL
NUMBER=25635],[JOB DESCRIPTION=Some sort of job description],[JOB
QUANTITY=3000],[DATE TO BE DELIVERED=28th of July, 2006],[TOTAL
COST=5489.00], [PAYMENT TERMS=50% on Approval, 50% on Delivery],[SENDER
EMAIL=keith.hutchi...@balance-infosystems.com]"
.messageAttachments "rproxy.pdf" ' full path is normally
required, multiple attachments by separating by commas, attachment
dialog by pass an empty string
.messagesSend
'.verboseOff
Else
MsgBox "Unable to connect to Mail Assistant"
End If
.disconnect
End With

Regards

Keith

Nov 20 '06 #5

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

Similar topics

0
by: david liu | last post by:
access 2000 query: here's what i want to do. from an asp page, perform a search on a table in access. i have used sql code in the asp page itself, but i'd rather execute a query in access. i...
1
by: M Stery | last post by:
I'm confused about the best way to accomplish this. Master Access db holds email addresses for a variety of job titles. Personnel holding those job titles and email addresses change all the time in...
1
by: Daveo | last post by:
Hi there, I have a contacts database, in which everyone is classified under a particular group e.g. staff,contractor etc. I would like to be able to send group e-mails. All I would like to...
7
by: Bernard D | last post by:
Hi, I'm using Access 97. I can run a query that finds a number of records, I then need to access these results to build a formatted text file containing all of the results. There will be 25...
18
by: flynjack | last post by:
I have a table named "tblError". The table includes the following columns: (1) Employee ID (2) Error Code (3) Email Address (4) Email Sent (Check box from Yes or No, Yes if checked. I have a...
7
by: fcolon75 | last post by:
I'm an experienced Access user, but very new to coding VBA in Access. I'd like to do the following: 1) Develop a basic query in the query designer. 2) Call that query from a VBA script 3)...
9
by: egrill | last post by:
I am looking for away to link the results of my query to an Excel spreadsheet that will automatically update and then emailed. Right now I export and send. I need a more efficient way. It is...
6
by: jsacrey | last post by:
Hey everybody, got a secnario for ya that I need a bit of help with. Access 97 using linked tables from an SQL Server 2000 machine. I've created a simple query using two tables joined by one...
10
by: Mike Miller | last post by:
Hi, Am wanting to send email with php and need to access the global outlook address book. Are there any examples/tutorials on how to do this? M
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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
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,...

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.