Hallo zusammen,

ich bin's nochmal mit meinem Rechnungsnr. prob.

Ich erhalte nach ausf�hren der Query ein Recordset das ich in eine Tabelle
schreibe; nun kann es vorkommen das meherere Rechnungsnr. gleich sind, z.b
so (Tabellenausschnitt):

UserID  Domain  InvType  InvoiceID  InvDate  DatePaid  Status  Amount  
v       test.com Renewal 45024 11/08/2000 01/09/2000 Paid *
v       test.com Renewal 45024 11/08/2000 01/09/2000 Paid *
<--
v       test.com Renewal 64944 08/02/2001 02/03/2001 Paid * 
v       test.com Renewal 64944 08/02/2001 02/03/2001 Paid *
<--

Ich zeichne die Tabelle wie folgt (mit query):

-------------
myquery = "Select a.exvat, a.userid, a.domain, a.invoiceid, a.invoicetype,
a.invdate, a.datepaid, a.status, b.quantity, b.prodprice from invoice a"
myquery = myquery & " left outer join invoicelink b on a.invoiceid =
b.invoiceid"
myquery = myquery & " where a.userid=" & CHR(39) &
Request.Querystring("userid") & CHR(39)
myquery = myquery & " order by a.invoiceid"

        with
        Response.write "<table border=1 bordercolor=#000120 cellspacing=2
cellpadding=3 align=center>"
                .Write "<tr>"
                .Write "<th nowrap bgcolor=#f0f8ff><font
size=2><b>UserID</b> </th>"
                .Write "<th nowrap bgcolor=#f0f8ff><font
size=2><b>Domain</b> </th>"
                .Write "<th nowrap bgcolor=#f0f8ff><font
size=2><b>InvType</b> </th>"
                .Write "<th nowrap bgcolor=#f0f8ff><font
size=2><b>InvoiceID</b> </th>"
                .Write "<th nowrap bgcolor=#f0f8ff><font
size=2><b>InvDate</b> </th>"
                .Write "<th nowrap bgcolor=#f0f8ff><font
size=2><b>DatePaid</b> </th>"
                .Write "<th nowrap bgcolor=#f0f8ff><font
size=2><b>Status</b> </th>"
                .Write "<th nowrap bgcolor=#f0f8ff><font
size=2><b>Amount</b> </th>"
                .Write "</tr>"
        end with
        
        If Not (RS.EOF AND RS.BOF) Then 
        
        
        while not rs.eof 
        
                      
        Response.Write "<tr>"
                .
                ..
                ...
                if vartype(rs.fields("invoiceid")) = vbNull then
                Response.Write "<td nowrap><font size=2>"
                Response.Write("N/A")
                Response.Write "</td>"
                else
                Response.Write "<td nowrap><font size=2>"
                Response.Write rs.fields("invoiceid")
                Response.Write "</td>"
                end if
usw...
        rs.movenext
        wend
----------------------

Jetzt m�chte ich

1. Alle gleichen rechnungsnummern untereinander haben, also die Recordsets
nach den nummern sortiert quasi (ich glaub das geht eh schon so)
2. Die zellen von gleichen, aufeinanderfolgenden InvoiceIDs farbig f�rben..
wie stelle ich das an, da ich ja das REcordset von anfang bis ende
durchgehe, bekomm ich immer nur die 2te gleiche Nummer farbig.. (oben mit
<-- markiert)

W�r super wenn mir da jemand weiterhelfen k�nnte!

Danke

Matthias

~~~~~~~~~~~~~~~~~~~~~~~~~~~sponsored by United Planet~~~~~~~~~~~~~~~~~
Intrexx.BizWalker + ODBC/OLEDB-Daten = ASP-Formular
ATTACK! Download Intrexx CRM-Studio Now!   http://www.intrexx.com
_______________________________________________
Database.asp mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/database.asp

Antwort per Email an