[mso] Re: Making the computer think before a Word Mail merge

  • From: Cathy.Evans@xxxxxxxxx
  • To: mso@xxxxxxxxxxxxx
  • Date: Mon, 22 Nov 2004 08:54:31 -0500

If the donation is tied to a date field, you'll want to pull the LAST of
the date field and the donor ID number.  This is a preparation query for
the make table (preparation query is just my own word for a pre-query I
need to make in order for the final query to get correct results).  In the
make table you'll need your main table, then your preparation query, joined
one to one on the date fields and donor ID.  Then when you run it, you will
get the $ result for only the last donation.  Otherwise, if you don't set
up the preparation query, you would still get a result for each donation,
cause they're not summed, and I'm thinking you're wanting the amount of
last donation, not a sum of all donations.  Also, you want LAST on the date
field instead of MAX on donation, cause MAX might give you only the maximum
$ value.

If anyone has a better way to handle, please jump in, too.  Kathie, if you
have trouble doing the preparation query, go into the SQL view and copy the
SQL, paste it here, maybe we can help get it sorted out, and the final make
table query.   Hope this helps, Cathy


                                                                                
                       
                      "Ray Blake"                                               
                       
                      <ray@xxxxxxxxx>          To: <mso@xxxxxxxxxxxxx>          
                       
                      Sent by:                                                  
                       
                      mso-bounce@freelist      cc:                              
                       
                      s.org                                                     
                       
                      11/21/2004 05:28 AM      Subject:  [mso] Re: Making the 
computer think before a  
                      Please respond to           Word Mail merge               
                       
                      mso                                                       
                       
                                                                                
                 ..... 
                                                                                
                       




Yes, there is. You'll need to put a criterion in for that joined field.
It's a while since I've done it, but something based on MAX might to it.
Anyone else want to jump in here?

Ray

------------------------------------
GR Business Process Solutions
Ray Blake
Head of Software Design
ray@xxxxxxxxx
Braedon
Newell Road
Hemel Hempstead
Herts HP3 9PD
tel: 01442 396518
fax: 01442 389353
mobile: 07834 226601
------------------------------------


-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On
Behalf Of Kathie Felts
Sent: 19 November 2004 17:28
To: mso@xxxxxxxxxxxxx
Subject: [mso] Re: Making the computer think before a Word Mail merge


Ray,

Thanks for your help.  I'm building the query (uugggh).  It is a make
table query as you suggested.  I use the donors table (for information
so
I can send it through the mail) and the donations table.  Turns out that
I
dont' have a "last donation" field, but I do have a donations table with

every donation that is related to the donor table through the donor ID
number.  is there a way to get this so I do only ONE selection per
donor,
not one for each time they gave?

I'm thinking it will be in criteria under the Amount field.  I'm staring

at the expression builder without the foggiest idea how to say in
computer
"just the most recent, please"

It may be easier just to export to excel, and manually put in the most
recent donations and then get it to multiply for me.

Access is tough on my self-esteem.

Kathie

--
Kathie Felts
Executive Director
Blooming Prairie Center
Deep Roots, Bright Futures, Unlimited Horizons







-----------------------------------------------------------------------------------------------------
The information transmitted is intended only for the person
or entity to which it is addressed and may contain proprietary,  
business-confidential and/or privileged material.
If you are not the intended recipient of this message you 
are hereby notified that any use, review, retransmission, 
dissemination, distribution, reproduction or any action taken
in reliance upon this message is prohibited. If you received
this in error, please contact the sender and delete the 
material from any computer.  Any views expressed in this message
are those of the individual sender and may not necessarily reflect 
the views of the company.
-------------------------------------------------------------------------------------------------------

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: