473,624 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_Quer y

Form: Management_Form

--
Message posted via http://www.accessmonster.com
May 25 '06 #1
4 1590
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_Que ry" 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_Qu ery" 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.c om 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+automat ion 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.Recipien ts.Add rsEMail.Fields( "Address")
rsEMail.MoveNex t
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********@hotm ail.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+automat ion 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.Recipien ts.Add rsEMail.Fields( "Address")
rsEMail.MoveNex t
Loop

that help?


--
Message posted via AccessMonster.c om
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
1782
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 background task instead of user need to wait and wait until all email sent. Also, when user waiting to complete the emailing list, the page is blank and nothing, can we put a layout when user waiting a request.
5
7371
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 Run-time error. When I run it on an XP machine it crashes, but on an NT box it just generates an unknown error, handled by the error handler. I have debugged and stepped through the code and have narrowed the issue to the point at which the...
34
18228
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 broke....." as they say. Anyway, everything's finally getting replaced by a new set-up, and there is just one program, an Access program running under Windows 95, which we want to change for the most minor of amendments (almost cosmetic). The guy...
4
1647
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 currently for our client/server apps.
3
1491
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 as follows: " & Server.GetLastError.ToString mail.To = "myname@earthlink.net" mail.From = "myname@earthlink.net"
2
1487
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. I'm running IIS5 on a Win2k server box and recently ran the Windows Updates (the last time I do that). Anyway, that emailing form doesn't work now on any of the sites I host. Any ideas?
1
1401
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 group. Can I set something up so that I can email from Outlook to all the customers in the query below? I have an access database which I have creatged a query that pulls results
1
2851
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 on several user pc's and I don't know why. I've asked our PC Services group what they changed on the pc's that this does not work on and they say 'nothing'. Well something has changed cause this did work at one time. When I step thru it in...
6
1774
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 able to select a report's radio button and click one of the four command buttons. Currently, Preview and Print work. But the Reports have parameters in their queries. I'm prompted for the values for the Print and Preview buttons, but for some...
0
8240
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8680
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8482
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6111
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4082
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2610
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1487
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.