Your method sounds all right. I could get where I want to go with this
method, so I'll go with it. However, I'd have to get rid of the
"non-totaled" lines; I only want to see the totaled lines. For example, from
the original table, my query should only display three lines that look like
this:
PO Price Handling Freight Tax
111 18 5 3 2
112 45 12 11 7
115 22 5 4 4
I would need to delete all of the other lines to see this on the report.
I'm not sure if there's a unique identifier/key for each field. The PO
would be the key if there were one in this table, but it's a key for two or
three records rather than just one record.
Does this help you a little in seeing what I'm after?
Dear MV:
So, you would have:
SELECT [Customer PO] AS PO, SUM(Price) AS SPrice,
SUM(Handling) AS SHandling, SUM(Freight) AS SFreight,
SUM(tax) AS STax
FROM YourTable
GROUP BY [Customer PO]
I completely blew part of what I posted before, confusion the answer with a
prior persons question I had worked on. Must have been getting tired. I
had a good nap, so hopefully I'm doing better now.
Please disregard some of that garbled stuff! It must have been confusing!
Only I can understand it, because I remember how I was misunderstanding your
post.
Tom Ellison
> Your method sounds all right. I could get where I want to go with this
> method, so I'll go with it. However, I'd have to get rid of the
[quoted text clipped - 17 lines]
>
> Does this help you a little in seeing what I'm after?
mvgoedken - 26 Apr 2006 15:07 GMT
I'm having trouble entering the command you showed me. I'm not sure where it
goes in the query design view. I try to put it in the "Criteria" row, but I
keep getting error messages.
Any advice?
Tom Ellison - 26 Apr 2006 16:43 GMT
Dear MV:
It doesn't go in the query design view. It is the SQL View, in its
entirety. This is the text of a complete, finished query.
When you get to the design view of a new query, don't select any table. SQL
will show up in the symbols at the top of the screen. Click and paste this
in. Substitute the actual name of your table.
Tom Ellison
> I'm having trouble entering the command you showed me. I'm not sure where
> it
[quoted text clipped - 3 lines]
>
> Any advice?