A Simple ASP Example
Triple Level Control Break
 
 

Begin execution...

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

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

Recordset opened OK

Badge idLocationLast NameFirst Name
A
Freen
Fred
218AFreenFred
First Name Count for Fred = 1
Last Name Count for Freen = 1
Frost
Jack
125AFrostJack
First Name Count for Jack = 1
Joan
127AFrostJoan
197AFrostJoan
First Name Count for Joan = 2
Joe
126AFrostJoe
128AFrostJoe
First Name Count for Joe = 2
Last Name Count for Frost = 5
mcMahon
Bill
311AmcMahonBill
First Name Count for Bill = 1
Last Name Count for mcMahon = 1
Toast
Billie
216AToastBillie
First Name Count for Billie = 1
Burnt
217AToastBurnt
First Name Count for Burnt = 1
Mille
109AToastMille
119AToastMille
179AToastMille
First Name Count for Mille = 3
Last Name Count for Toast = 5
Location Count for A = 12
B
Toast
Joe
406BToastJoe
First Name Count for Joe = 1
Last Name Count for Toast = 1
Usmooch
Joe
512BUsmoochJoe
First Name Count for Joe = 1
Ron
526BUsmoochRon
527BUsmoochRon
528BUsmoochRon
First Name Count for Ron = 3
Last Name Count for Usmooch = 4
Will
Bill
826BWillBill
First Name Count for Bill = 1
Last Name Count for Will = 1
Location Count for B = 6
C
Frost
Jamie
927CFrostJamie
First Name Count for Jamie = 1
Jim
331CFrostJim
332CFrostJim
333CFrostJim
334CFrostJim
First Name Count for Jim = 4
Julain
133CFrostJulain
First Name Count for Julain = 1
Julie
416CFrostJulie
First Name Count for Julie = 1
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 third level subtotals (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:54:30 AM

Click here for the program listing (bcb3.asp)