Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send Email Based On Table Array

Status
Not open for further replies.

bigmerf

MIS
Oct 4, 2002
247
US
Hello!

I have an Access Database for which I have a table including names and email addresses. What I want to be able to do have the user click a button and generate an email for each record in the table and pull the email address from the appropriate field.

Has anyone out there created any VB code for something like this? I'm assuming I'll have to create a FOR loop or something like that to read through the table until EOF, but I need help with the syntax, specifically the FOR loop as well as how to setup the email object to pull the appropriate fields into the "To", "Subject", "Body", etc.... parts of the email.

Any help from someone that has done this (or knows how) would be greatly appreciated.

Thanks!
 


Hi,

Have you considered MS Word Mail Merge?

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Well, I want to automate the process so that the user just clicks the button and an email is created AND sent automatically for each record in a table.

It should pull the person's name and email address from the table specifically, but I need an email for each record.
 


So automate the Mail Merge process.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top