Thanks, actually each record has the family name and the columns represent
numeric fields that have the number of members in the family that
volunteered to help with publicity, fundraising, shelf-reading, bookstore,
etc. It is from the raw data in a table that will be entered. It can be
summed and then I will have a total of bodies that volunteered. I posted in
the other newsgroup a question about how to filter the query on the columns.
I did not want the records where one volunteered for none of the categories.
But I never got an answer or figured that one out.
I tried a query but I got hung up with the Boolean stuff. I tried to go down
to each column and on the Criteria or Or place the >0 for each field but
realized that it was the logic
If Col1 >0 and Col2>0 and Col3 >0 etc.
I was getting less and less records due to the implied 'and'--I needed the
'or' logic between fields
Please explain the Field row thing more to me. I am very new to Access. So
if I do the query I will have the Name field, Col1, Col2, Col3, Col4, Col5,
Col6, Col7 (actually I gave them more meaningfull names), where do I put the
expression? What Field? I am looking at your + below and realize that is
very important.
Thank you for your response.
Susan
Allen Browne said:
Assuming there are no negatives, you could create a query, and type an
expression like this into the Field row in query design:
Nz([Col1],0) + Nz([Col2],0) + Nz([Col3],0) + Nz([Col4],0) + ...
Then in the Criteria row beneath this:
<> 0
That may solve your current problem. But the real issue is that you have
built a spreasheet in Access, instead of a relational database. You really
need to have many rows in a related table, instead of repeating columns in
one table.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
Susan said:
I have a report with detail lines with
Name Col1 Col2 Col3 Col4 Col5 Col6 Col7
The Col's are numeric fields. I do not want to print the detail line if
ALL the Cols fields for that detail line have values that are zeros or
nulls. How would you do that?