Question : Need Help Formatting Classic ASP Output

i'm working on a press release page which is currently in classic asp. The Record Set grabs all the records and sorts them by Year, newest first.

Then I have a block of code that creates a two column table and exports the data.

Here's what I need to do.

Currently it looks like this:

2/18/2010     Article 1                    2/7/2010  Article Here
12/21/2009  Article Here                  11/2/2009 Article Here
10/1/2009    Article Here                 7/8/2009  Article Here

How I would like it to format is to have the Year as a header, and then all postings for that year immediately below it, not broken up into two rows as it is now.

Example.

** 2010 **                                                        ** 2005 **
2/18/2010 Article 1                                5/15/2005 Article
2/7/2010   Article                                   4/2/2009  Article
1/8/2010  Article                               
 1/2/2010  Article                                           ** 2006 **

I have attached my code. I would be greatful for any help. Thanks so much.
 
Code I'm using
 

Answer : Need Help Formatting Classic ASP Output

change :
If (DatePart("yyyy",strArtDate) <> DatePart("yyyy",oldArtDate)) Then


Response.Write("<b><font color=""#000000"">&nbsp;&nbsp;" &  DatePart("yyyy",oldArtDate) & "</font></b>")

it will probably show one record per year if i read the code right, but it's a step ahead :-P
Random Solutions  
 
programming4us programming4us