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

How can I make a Yes/No column to select email addresses to add to a new message?

Hey,

I'm currently using Access 2007. I've created a form that shows a list of search results in a subform. I want the user to be able to select specific people from the list and press a button to input all the selected addresses into the "To..." box in a new outlook email.

The database has email addresses in a column already. I was curious if it was possible to create an new "yes/no" column and have it equal the value of the email field in the same record if selected. Also how would I manage to connect that to a button to send those values to a new message.

I am also opern to other ideas to how I can do this.

Please let me know if this isn't clear or more information is needed. Thanks in advance!
Jun 29 '10 #1

✓ answered by thelonelyghost

Could you share some more information, such as what Operating System you use? What version of Outlook do you wish to use this with?

You could create another column where there are checkboxes, then set a filter to say "where [checkbox]". The tricky part would be to concatenate all fields in the filtered table into one string, separating each email by a semicolon. If you accomplish that, it's just a simple method of inserting that into a mailto: link that is clickable, which then opens a new message in outlook.

My plan doesn't contain much detail, but it gets you started. Your part is to research how to set filters (and possibly make it into a button), creating a form for simple user interface, and what the syntax of mailto: is. Pretty simple compared to the power Access is capable of.

EDIT: After looking at your user information, I'd assume you're doing this for a university club or the like, which makes me happy to say that you can easily make a similar button to the filter of everyone checked, but with a mailing groups. Create a field for groups such as 'Officers', 'Members', etc. and have buttons that email each group. VERY slight change to the coding.

7 2155
thelonelyghost
109 100+
Could you share some more information, such as what Operating System you use? What version of Outlook do you wish to use this with?

You could create another column where there are checkboxes, then set a filter to say "where [checkbox]". The tricky part would be to concatenate all fields in the filtered table into one string, separating each email by a semicolon. If you accomplish that, it's just a simple method of inserting that into a mailto: link that is clickable, which then opens a new message in outlook.

My plan doesn't contain much detail, but it gets you started. Your part is to research how to set filters (and possibly make it into a button), creating a form for simple user interface, and what the syntax of mailto: is. Pretty simple compared to the power Access is capable of.

EDIT: After looking at your user information, I'd assume you're doing this for a university club or the like, which makes me happy to say that you can easily make a similar button to the filter of everyone checked, but with a mailing groups. Create a field for groups such as 'Officers', 'Members', etc. and have buttons that email each group. VERY slight change to the coding.
Jun 29 '10 #2
@thelonelyghost
I am currently using Windows XP Professional OS and Outlook 2007
Jun 29 '10 #3
thelonelyghost
109 100+
Service pack 0, 1, 2, or 3? (service pack 0 would not say 'Service Pack' at all)

See my above edits.
Jun 29 '10 #4
I looked into the mailto: syntax and came up with SendObject function in macro. I am currently researching the set filters you mentioned, but is there a code that may allow me to take those filters and put it into a macro argument such as the "To" argument in SendObject?

From there I can just have the macro run to edit message
Jun 29 '10 #5
thelonelyghost
109 100+
unfortunately I've only dabbled in the mailto: syntax so you've already looked farther ahead than I have. I was simply thinking about constructing a URL with a LOT of concatenation of email addresses in the mailto: syntax. Maybe one of the experts will come an help...
Jun 29 '10 #6
@thelonelyghost
Thank you for your help
Jun 29 '10 #7
thelonelyghost
109 100+
@Raven7738
No problem, glad I could help!
Jun 30 '10 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: dave | last post by:
Hello, I'm creating a site that has several contact email addresses. These are vlid addresses, i'm wondering if i can use php to alter these addresses so that spam harvesters can't get them, yet a...
2
by: Maziar Aflatoun | last post by:
Hi everyone, I have 2 tables with table A containing an 'email' field and table B containing 2 fields 'primaryemail' and 'secondaryemail'. Now is it possible to issue a query that would return...
3
by: kieran | last post by:
Hi, i know this should be easy but cant get it exactly right. i have a Datagrid pulling results from a stored proc in database, it outputs four columns, one of which is an email address...
3
by: g0c | last post by:
hi, how to hide or replace email addresses in php mail function with something like "group" so the email addresses to which email is sent are not visible ? i have : $subs = "email1@dot.com,...
12
by: Adrian | last post by:
Is there a way to know which email addresses viewed my website? Thanks, Adrian.
3
by: dragonfly8563 | last post by:
Hi all, I created a listbox with employees' names and email addresses in it, and a button which grabs email address once it's clicked. Currently I can only pick up one address at a time, but I...
2
by: Monroeski | last post by:
I am working on a form for approval/disapproval of requests. Basically, the user will select a RequestID from a combobox, then select approve or disapprove, then hit the submit button. When they...
2
by: Wayne | last post by:
I'm using the following code to send email addresses from a query to Outlook: Dim db As Database, rs As Recordset, sql As String, emailTo As String Set db = CurrentDb() emailTo = "" sql =...
1
by: Sergeles | last post by:
I am currently in the process of making/maintaining a database for a school club. I started the database mostly from scratch and i have a pretty good familiarity with Access (been using it for almost...
4
by: renegade78 | last post by:
Hi, I'm new to the forum and was wondering if anyone could help me! Basically, I'm trying to create a script that will send an email to a group of recipients that are created elsewhere, plced...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.