<% Set Conn=Server.CreateObject("ADODB.Connection") Conn.Open "DBQ=d:\www\teisterbanders.nl\database\senioren2122.mdb;DRIVER={Microsoft Access Driver (*.mdb, *.accdb)}","","" SET DTBrs=Server.CreateObject("ADODB.Recordset") DTBrs.Open "KlasdeelQuery",Conn,3,3 SQL="Select * from KlasdeelQuery where Klasse = '516' ORDER BY Clubname" Set RS=Conn.Execute(SQL)%> <%Teller = 1 dim clubnaam3e (15,17) Do While not RS.EOF clubnaam3e (teller,1) = left((RS("Clubname")),3) clubnaam3e (teller,2) = (RS("Clubname")) teller = teller+1%> <% RS.MoveNext Loop%> <%aantal = teller - 1%> <% SQL="Select * from WedstrijdUitslag3 ORDER BY Datum" Set RS=Conn.Execute(SQL)%> <% Do While not RS.EOF uitslag = (RS("Voor")) & "-" & (RS("Tegen")) Thuis = (RS("Thuis")) Uit = (RS("Uit")) For i = 1 to aantal IF thuis = clubnaam3e (i,2) THEN rij = i IF uit = clubnaam3e (i,2) Then kolom = i + 2 NEXT clubnaam3e (rij,kolom) = uitslag %> <% RS.MoveNext Loop%> <%Conn.Close Set RS=Nothing %>
<%For i = 1 to aantal%> <%next%> <%For i = 1 to aantal%> <%For x = 3 to aantal + 2%> <%IF i +2 = x then%> <%Else%> <%if clubnaam3e (i,x) = "" then %> <%Else%> <%End if%> <%End if%> <%Next%> <%Next%>
5e res. klasse 516
<%response.write(clubnaam3e (i,1))%>
<% response.write Clubnaam3e (i,2) %>-<%response.write Clubnaam3e (i,x)%>