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

Help on Emailing to a Group

Hi,
I am trying to work on an employee database. The tables and fields that I am
working on are listed below.
I created a query because I wanted to separate the employees by department
(selected query). The fields below are the ones I needed for the query. Then
I created a form based on the query
I created so that I can make use of a button that will prompt an event. That
event will open Outlook and enter the emails from the form in the “To:” field.

I am not sure if I still need to make a query since I can get the same info
(and get the employees divided into departments) by going directly into
making a form.

Hope this helps. Thank you again. I really hope I can get this working.

Table: Departments
Field: Department_Name

Table: Personal
Fields: Last Name, First Name

Table: Work
Field: Email

Query: Management_Query

Form: Management_Form

--
Message posted via http://www.accessmonster.com
May 25 '06 #1
4 1577
Access DB 101

Tables contain your data.

Queries are like wearing glasses. Sun glasses filter out some
types/colors of the light. Queries allow you to be selective in what
you see, allow you to combine tables so that you see the information
grouped etc.for your use.

Forms are presentation tools. They allow you to present information in
a pleasing manner. But the question is what to forms present. They have
to have a "Record Sourse" They have to get the data from something.
They can get the data either from a table or a query.

What I am saying is that what you have really described above are three
tables, a Query, AND a form that if it is showing any data is based on
a Query. If you go to the record source of your form, I am willing to
be that you will see "SELECT......" etc. Then if you go to the Query
you have defined and open it in design view and right click to see it
in SQL view you will see "SELECT ..." etc. In the form if you mouse
the .... box and it opens a query wizard you can also then press the
save button and can save that as a query.

The end result is you have 3 tables, two queries and a form that is
using one of those queries.

The answer then is you need the form to present the data and perform
the selected actions. You also need the query that the form is based on
wether it is saved as a query or simply is composed of a SELECT
statement in the record source.
You obviously need the tables.

Now if the record souce of the form IS the query called
"Management_Query" then you will need it otherwise the form will NOT
have any data to show.

May 26 '06 #2
Thank you.

Based on your reply, what i want to do next is create a button on my Form
(record source is the mentioned query). What I want the button to do is open
up MS Outlook and enter the email information from the Form into the "To:"
field of Outlook. I hope that the names of the Tables and Fields will be
enough to help you help me on my problem. Thank you.

Ron2006 wrote:
Access DB 101

Tables contain your data.

Queries are like wearing glasses. Sun glasses filter out some
types/colors of the light. Queries allow you to be selective in what
you see, allow you to combine tables so that you see the information
grouped etc.for your use.

Forms are presentation tools. They allow you to present information in
a pleasing manner. But the question is what to forms present. They have
to have a "Record Sourse" They have to get the data from something.
They can get the data either from a table or a query.

What I am saying is that what you have really described above are three
tables, a Query, AND a form that if it is showing any data is based on
a Query. If you go to the record source of your form, I am willing to
be that you will see "SELECT......" etc. Then if you go to the Query
you have defined and open it in design view and right click to see it
in SQL view you will see "SELECT ..." etc. In the form if you mouse
the .... box and it opens a query wizard you can also then press the
save button and can save that as a query.

The end result is you have 3 tables, two queries and a form that is
using one of those queries.

The answer then is you need the form to present the data and perform
the selected actions. You also need the query that the form is based on
wether it is saved as a query or simply is composed of a SELECT
statement in the record source.
You obviously need the tables.

Now if the record souce of the form IS the query called
"Management_Query" then you will need it otherwise the form will NOT
have any data to show.


--
Message posted via http://www.accessmonster.com
May 30 '06 #3

BernardNem via AccessMonster.com wrote:
Thank you.

Based on your reply, what i want to do next is create a button on my Form
(record source is the mentioned query). What I want the button to do is open
up MS Outlook and enter the email information from the Form into the "To:"
field of Outlook. I hope that the names of the Tables and Fields will be
enough to help you help me on my problem. Thank you.


Look up Outlook+automation in this NG. I think Danny Lesandrini has a
simple example on his website...

http://www.amazecreations.com/datafa...utlookMail.asp

then if you have a series of e-mail addresses, you can just add them
one at a time to the Recipients collection.

do until rsEMail.EOF
olkMsg.Recipients.Add rsEMail.Fields("Address")
rsEMail.MoveNext
Loop

that help?

May 31 '06 #4
Thank you for your effort in helping me out. I am a newbie in MS Access and I
just have to ask, where i need to paste the sample code? is it going to be
for the button? Thank you so much.

pi********@hotmail.com wrote:
Thank you.

[quoted text clipped - 3 lines]
field of Outlook. I hope that the names of the Tables and Fields will be
enough to help you help me on my problem. Thank you.


Look up Outlook+automation in this NG. I think Danny Lesandrini has a
simple example on his website...

http://www.amazecreations.com/datafa...utlookMail.asp

then if you have a series of e-mail addresses, you can just add them
one at a time to the Recipients collection.

do until rsEMail.EOF
olkMsg.Recipients.Add rsEMail.Fields("Address")
rsEMail.MoveNext
Loop

that help?


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200606/1
Jun 3 '06 #5

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

Similar topics

1
by: Stanley Cheung | last post by:
Hi all, I am developing the application for send emailing list, actually, i can perform to send a email 1 by 1 and do it on aspx page. I have a enquiry that how can the application change to...
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...
34
by: John Harrison | last post by:
An odd confession; an odd request; but here's the tale.... My company has a few PC systems which we have used for about 7 years and not updated - we've "made do", and besides, "if it ain't...
4
by: Mike Moore | last post by:
What is the best way to launch outlook from an asp.net web page? Can you do this using MAPI or is there a control that you can purchase? We are unable to use SMTP. We use MS Exhange and MAPI...
3
by: Sandy | last post by:
Hello - I am attempting to email error messages to myself in the event of an error. I am using the following code: Dim mail as New MailMessage() Dim ErrorMessage = "The error description is...
2
by: Rico | last post by:
Hello, I'm using formmail.asp which is an emailing utility. Basically, the user fills out a request page, clicks "Submit" and the page posts to formmail.asp which emails the user information. ...
1
by: malhyp | last post by:
Hi to all! I dont know if this is possible but can someone please suggest if this is possible and if so where I could find some info on how to do it or what I should be looking for in this...
1
by: bobh | last post by:
Hi All, I've been using this function which I got from here for some time now in two of my AccessXP multiusers applications and it has worked without issue until lately it has stopped functioning...
6
by: ladybug76 | last post by:
Hello. Okay, so I have an Option Group with 6 reports on the Right hand side of a form. On the left, I have 4 command buttons. 1) Preview 2) Print 3) Save off 4) Email. I want the user to be...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...

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.