Connecting Tech Pros Worldwide Help | Site Map

Button to Send an Email to Group(s)

  #1  
Old November 12th, 2005, 03:32 PM
Jeff West
Guest
 
Posts: n/a
Greetings all,
I'm not a developer (not even close) but have been teaching myself
Access lately and would like to ask the group for some help.

I've recently created a employee contact database for my office and
each contact in the table is classified into the type of contact they
are. Each contact can have more than one of these classifications.

What I would like to do is create a button on our entry form that you
would be able to click to, say, send an email to all our Blue Clients.
Another button could send an email to all our Red Clients. It would
open up the user's default email application (yes, VIM protocol) and
would dump the email addresses of all the contacts in that
classification into the TO: line.

I've been able to find information and have created buttons that would
attach a report from your database (DoCmd.SendObject). But I can't
seem to find out how to do this one.

Any (simplified) assistance would be greatly appreciated.

Thanks!
~Jeff West
Seattle, WA
  #2  
Old November 12th, 2005, 03:32 PM
Pieter Linden
Guest
 
Posts: n/a

re: Button to Send an Email to Group(s)


westwas1@yahoo.com (Jeff West) wrote in message news:<55448e6a.0310201434.6b5ecd3d@posting.google. com>...[color=blue]
> Greetings all,
> I'm not a developer (not even close) but have been teaching myself
> Access lately and would like to ask the group for some help.
>
> I've recently created a employee contact database for my office and
> each contact in the table is classified into the type of contact they
> are. Each contact can have more than one of these classifications.
>
> What I would like to do is create a button on our entry form that you
> would be able to click to, say, send an email to all our Blue Clients.
> Another button could send an email to all our Red Clients. It would
> open up the user's default email application (yes, VIM protocol) and
> would dump the email addresses of all the contacts in that
> classification into the TO: line.
>
> I've been able to find information and have created buttons that would
> attach a report from your database (DoCmd.SendObject). But I can't
> seem to find out how to do this one.
>
> Any (simplified) assistance would be greatly appreciated.
>
> Thanks!
> ~Jeff West
> Seattle, WA[/color]

You'd need 3 tables. Client--<ClientGroup>---Group

Then you could do something like use the code from mvps.org to
concatenate all the ClientGroup record values into a single field in a
query, and send the e-mail to that list. Then you could pass that
function's return value to the SeondObject command, and it would do
the mailing for you. Here's the link:

http://www.mvps.org/access/modules/mdl0004.htm
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending multiple attachments in one email to multiple address alpnz answers 8 January 1st, 2007 09:04 AM
How to send values from one page to another? Miguel Dias Moura answers 5 November 18th, 2005 11:36 AM
Sending an email from within ASP Nathan Sokalski answers 4 July 19th, 2005 01:39 PM
how to send ASP newsletter to a select group from Access DB cooldv answers 0 July 19th, 2005 06:45 AM