A Simple ASP Example
Double Level Control Break
 
 

Begin execution...

Opening badge rs with SQLstring=
--->SELECT * FROM badge order by bloc ASC, blastname ASC, bid ASC<------

NOTE: Primary sort is location, secondary sort is lastname, third level sort is badge id

Recordset opened OK

Badge idLocationLast NameFirst Name
A
Freen
218AFreenFred
Last Name Count for Freen = 1
Frost
125AFrostJack
126AFrostJoe
127AFrostJoan
128AFrostJoe
197AFrostJoan
Last Name Count for Frost = 5
mcMahon
311AmcMahonBill
Last Name Count for mcMahon = 1
Toast
109AToastMille
119AToastMille
179AToastMille
216AToastBillie
217AToastBurnt
Last Name Count for Toast = 5
Location Count for A = 12
B
Toast
406BToastJoe
Last Name Count for Toast = 1
Usmooch
512BUsmoochJoe
526BUsmoochRon
527BUsmoochRon
528BUsmoochRon
Last Name Count for Usmooch = 4
Will
826BWillBill
Last Name Count for Will = 1
Location Count for B = 6
C
Frost
133CFrostJulain
331CFrostJim
332CFrostJim
333CFrostJim
334CFrostJim
416CFrostJulie
927CFrostJamie
Last Name Count for Frost = 7
Location Count for C = 7
GRAND TOTAL = 25

Records read=25

Control total check OK -- Number of records read (25) = Sum of second level subtotals (25)
Control total check OK -- Number of records read (25) = Sum of first level subtotals (25)

Terminating Normally -- 11/23/2009 5:56:26 AM

Click here for the program listing (bcb2.asp)