Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tables with varying numbers of columns

Status
Not open for further replies.

crysma

Programmer
Oct 17, 2002
21
CA
Hi,

I was wondering if there is any way to not display a column of a table if the total for that column is zero? For example, if I had the following table:

Col1 Col2 Col3 Col4
Row1 1 0 2 3
Row2 2 0 4 2
Row3 1 0 2 1

Total 4 0 8 6


should show up as

Col1 Col3 Col4
Row1 1 2 3
Row2 2 4 2
Row3 1 2 1

Total 4 8 6


with column2 being removed entirely.


If I cant figure out a way to do this the resulting tables are going to be entirely too large and unwieldy-looking.

Thanks in advance for your help,

Sheryll

Sheryll
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top