help with the sum

Jasna

New member
Local time
Today, 19:56
Joined
Mar 4, 2003
Messages
8
Hello all,

I have two tables, one table contains different products, their prices, category ID, etc.
The other table contains category names and category ID (each product belongs to a
certain category).

Then I made a query, it looks something like this:

nr. product price1 price2 category
1 p1 100 150 c1
2 p2 200 c2
3 p3 300 300 c3

I would like to create a report based on this query. I have to show product categories and
products in a report. I also have to sum prices of the products of each category. But it
should be a sum of only those lines who have all cells filled (in my case, I would only
need a sum of p1 and p2). So, the report should contain all products and should contain
the sum of only those products whose lines have all cells filled.
How can I do this??

Any help would be very much appreciated!
Jasna
 
do you need to show also on your report those records which is not completely filled?
 
yes, I have to show all data
 
i can't figure out your example clearly, can you attached here your database in MS97 format?
 
Ok here is my database... the query on which my report should be base is called "Po blagovnih skupinah"
 

Users who are viewing this thread

Back
Top Bottom