I need to total seven columns by column and by row. I also need to omit any
fields without data. Can anyone help?
It sounds like you're thinking in spreadsheet terms. (You *are*
talking about Microsoft Access tables, which have fields and records,
rather than an Excel spreadsheet which has columns and rows... right?)
Assuming that you do want to do this in Access - which, by the way,
suggests that you need work on your table design! - create a new
Query. Select your table and select the seven fields.
In a vacant Field cell type
RowSum: NZ([Field1]) + NZ([Field2]) + NZ([Field3]) + NZ([Field4]) +
NZ([Field5]) + NZ([Field6]) + NZ([Field7])
all on one line, using your own fieldnames of course.
In order to see each line and also see the totals, you will want to
create either a Form (for onscreen viewing) or Report (for printing).
Base it on this Query. In the Form (or Report) Footer put seven
textboxes with Control Source property
=Sum([Field1])
for the seven fields.
John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps