Re: Total Query
- From: "Greg" <gfjesky@xxxxxxxxxxxxx>
- Date: Sun, 21 Jan 2007 01:47:12 -0500
John,
Thank You,
Greg
"John Vinson" <jvinson@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3nf4r295crsoerqjh2gletto4ou98hljks@xxxxxxxxxx
On Sat, 20 Jan 2007 01:19:06 -0500, "Greg" <gfjesky@xxxxxxxxxxxxx>get
wrote:
Jason and John,
Thank you- Max works great! John can you explain when I would possibly
"(which might have
some fields from one record and some fields from another)" ?
If you JUST use a Totals query, the [Current Charges] or [Billing
Code] field will need to either be in the Group By - which will give
you one record per different value of the charges and code rather than
the most recent - or some other aggregate function such as Max. That
would give you (e.g.) the latest date (from the Max of date) and -
*independently* - the largest charge anywhere in the table (from the
Max on the charge).
The subquery is unambiguous - it will find the latest record and
display all the fields from that record.
John W. Vinson[MVP]
.
- References:
- Total Query
- From: Greg
- Re: Total Query
- From: John Vinson
- Re: Total Query
- From: Greg
- Re: Total Query
- From: John Vinson
- Total Query
- Prev by Date: Re: accumulating total
- Next by Date: RE: Enter Parameter Value Issue when running query with 2 tables
- Previous by thread: Re: Total Query
- Next by thread: Counting number of events per month...?
- Index(es):
Relevant Pages
|