MISdad
Technical User
- May 5, 2004
- 34
I've got an ASP page that lists employee phone numbers. It is pulling the information from our employee database and displaying it in a web page on our intranet server. The database server is running IBM DB2 and I have a view created to get the information from the individual tables. The problem is that is seems to take a long time (around 20 seconds) to display the list. We only have around 500 employees and I have the page set to list them alphabetically by department and division. It just doesn't seem like it should take that long to load and since I'm new to this I'm wondering if something in my code is causing the problem - too bulky maybe. Any suggestions are greatly appreciated. Here is the code (sorry it's kind of long).
Code:
<% Response.Buffer = True %>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>Employee Phone List</title>
</head>
<body>
<div align="center">
<center>
<table border="0" width="550" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">
<tr>
<td><p align="center"><a name="top"></a><font color="#800000"><big>EMPLOYEE TELEPHONE DIRECTORY<br>
LISTED BY DEPARTMENT AND DIVISION</big></font></p>
<p align="center">
<img src="../phone.jpg" alt="phone.jpg (2384 bytes)"></p>
<p align="left"> </td>
</tr>
</table>
</center>
</div>
<p align="center"><b><font face="helvetica,arial">
<a href="#D1">Department1</a></font></b><font FACE="helvetica,arial"><b>
<a href="#D2">Department2</a>
<a href="#D3">Department3</a>
<a href="#D4">Department4</a> <br>
<a href="#D5">Department5</a>
<a href="#D6">Department6</a>
<a href="#D7">Department7</a>
<a href="#D8">Department8</a>
<a href="#D9">Department9</a></b></font><br>
</p>
<%
Dim MyConn
Set MyConn = Server.CreateObject("ADODB.Connection")
MyConn.Open "DSN=PHONE_LIST"
Dim rs
Set rs = Server.CreateObject ("ADODB.Recordset")%>
<p align="left"><u><b><font face="Arial" color="#000080"><a name="#D1"> Department1</a></font></b></u>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><b><%Response.Write "NAME"%></b></font></td>
<td width="11%"><font face="Arial" size="2"><b><%Response.Write "PHONE"%></b></font></td>
<td width="29%"><font face="Arial" size="2"><b><%Response.Write "DIVISION"%></b></font></td>
<td width="37%"><font face="Arial" size="2"><b><%Response.Write "JOB TITLE"%></b></font></td></tr>
</table>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department1' AND EMPLOYEE_PHONES.Division_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DIVISION_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department1' AND EMPLOYEE_PHONES.Division_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DIVISION_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department1' AND EMPLOYEE_PHONES.Division_DESC=' DivisionName ' ORDER BY EMPLOYEE_PHONES.DIVISION_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department1' AND EMPLOYEE_PHONES.Division_DESC=' DivisionName ' ORDER BY EMPLOYEE_PHONES.DIVISION_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department1' AND EMPLOYEE_PHONES.Division_DESC=' DivisionName' ORDER BY EMPLOYEE_PHONES.DIVISION_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department1' AND EMPLOYEE_PHONES.Division_DESC=' DivisionName' ORDER BY EMPLOYEE_PHONES.DIVISION_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<p align="center"><font face="Arial" size="2"><a href="#top">Back to the Top of the Page</a></font></p>
<br>
<p align="left"><u><b><font face="Arial" color="#000080"><a name="#D2"> Department2</a></font></b></u>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><b><%Response.Write "NAME"%></b></font></td>
<td width="11%"><font face="Arial" size="2"><b><%Response.Write "PHONE"%></b></font></td>
<td width="29%"><font face="Arial" size="2"><b><%Response.Write "DIVISION"%></b></font></td>
<td width="37%"><font face="Arial" size="2"><b><%Response.Write "JOB TITLE"%></b></font></td></tr>
</table>
<%Set rs = Server.CreateObject ("ADODB.Recordset")
rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department2' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department2' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC='Municipal Services' AND EMPLOYEE_PHONES.DIVISION_DESC='Engineering' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC='Traffic and Parking' AND EMPLOYEE_PHONES.DIVISION_DESC='Engineering' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<p align="center"><font face="Arial" size="2"><a href="#top">Back to the Top of the Page</a></font></p>
<br>
<p align="left"><u><b><font face="Arial" color="#000080"><a name="#D3"> Department3</a></font></b></u>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><b><%Response.Write "NAME"%></b></font></td>
<td width="11%"><font face="Arial" size="2"><b><%Response.Write "PHONE"%></b></font></td>
<td width="29%"><font face="Arial" size="2"><b><%Response.Write "DIVISION"%></b></font></td>
<td width="37%"><font face="Arial" size="2"><b><%Response.Write "JOB TITLE"%></b></font></td></tr>
</table>
<%Set rs = Server.CreateObject ("ADODB.Recordset")
rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC='Department3' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<p align="center"><font face="Arial" size="2"><a href="#top">Back to the Top of the Page</a></font></p>
<br>
<p align="left"><u><b><font face="Arial" color="#000080"><a name="#D4"> Department4</a></font></b></u>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><b><%Response.Write "NAME"%></b></font></td>
<td width="11%"><font face="Arial" size="2"><b><%Response.Write "PHONE"%></b></font></td>
<td width="29%"><font face="Arial" size="2"><b><%Response.Write "DIVISION"%></b></font></td>
<td width="37%"><font face="Arial" size="2"><b><%Response.Write "JOB TITLE"%></b></font></td></tr>
</table>
<%Set rs = Server.CreateObject ("ADODB.Recordset")
rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department4' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department4' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department4' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<p align="center"><font face="Arial" size="2"><a href="#top">Back to the Top of the Page</a></font></p>
<br>
<p align="left"><u><b><font face="Arial" color="#000080"><a name="#D5"> Department5</a></font></b></u>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><b><%Response.Write "NAME"%></b></font></td>
<td width="11%"><font face="Arial" size="2"><b><%Response.Write "PHONE"%></b></font></td>
<td width="29%"><font face="Arial" size="2"><b><%Response.Write "DIVISION"%></b></font></td>
<td width="37%"><font face="Arial" size="2"><b><%Response.Write "JOB TITLE"%></b></font></td></tr>
</table>
<%Set rs = Server.CreateObject ("ADODB.Recordset")
rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department5' AND EMPLOYEE_PHONES.DIVISION_DESC = 'DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department5' AND EMPLOYEE_PHONES.DIVISION_DESC = 'DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<p align="center"><font face="Arial" size="2"><a href="#top">Back to the Top of the Page</a></font></p>
<br>
<p align="left"><u><b><font face="Arial" color="#000080"><a name="#D6"> Department6</a></font></b></u>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><b><%Response.Write "NAME"%></b></font></td>
<td width="11%"><font face="Arial" size="2"><b><%Response.Write "PHONE"%></b></font></td>
<td width="29%"><font face="Arial" size="2"><b><%Response.Write "DIVISION"%></b></font></td>
<td width="37%"><font face="Arial" size="2"><b><%Response.Write "JOB TITLE"%></b></font></td></tr>
</table>
<%Set rs = Server.CreateObject ("ADODB.Recordset")
rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department6' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<p align="center"><font face="Arial" size="2"><a href="#top">Back to the Top of the Page</a></font></p>
<br>
<p align="left"><u><b><font face="Arial" color="#000080"><a name="#D7"> Department7</a></font></b></u>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><b><%Response.Write "NAME"%></b></font></td>
<td width="11%"><font face="Arial" size="2"><b><%Response.Write "PHONE"%></b></font></td>
<td width="29%"><font face="Arial" size="2"><b><%Response.Write "DIVISION"%></b></font></td>
<td width="37%"><font face="Arial" size="2"><b><%Response.Write "JOB TITLE"%></b></font></td></tr>
</table>
<%Set rs = Server.CreateObject ("ADODB.Recordset")
rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department7' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department7' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department7' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department7' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<p align="center"><font face="Arial" size="2"><a href="#top">Back to the Top of the Page</a></font></p>
<br>
<p align="left"><u><b><font face="Arial" color="#000080"><a name="#D8"> Department8</a></font></b></u>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><b><%Response.Write "NAME"%></b></font></td>
<td width="11%"><font face="Arial" size="2"><b><%Response.Write "PHONE"%></b></font></td>
<td width="29%"><font face="Arial" size="2"><b><%Response.Write "DIVISION"%></b></font></td>
<td width="37%"><font face="Arial" size="2"><b><%Response.Write "JOB TITLE"%></b></font></td></tr>
</table>
<%Set rs = Server.CreateObject ("ADODB.Recordset")
rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department8' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department8' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department8' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department8' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department8' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<p align="center"><font face="Arial" size="2"><a href="#top">Back to the Top of the Page</a></font></p>
<br>
<p align="left"><u><b><font face="Arial" color="#000080"><a name="#D9"> Department9</a></font></b></u>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><b><%Response.Write "NAME"%></b></font></td>
<td width="11%"><font face="Arial" size="2"><b><%Response.Write "PHONE"%></b></font></td>
<td width="29%"><font face="Arial" size="2"><b><%Response.Write "DIVISION"%></b></font></td>
<td width="37%"><font face="Arial" size="2"><b><%Response.Write "JOB TITLE"%></b></font></td></tr>
</table>
<%Set rs = Server.CreateObject ("ADODB.Recordset")
rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department9' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department9' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<%rs.Open "SELECT * FROM EMPLOYEE_PHONES WHERE EMPLOYEE_PHONES.PHONE_DESC='OFFICE' AND EMPLOYEE_PHONES.DEPARTMENT_DESC=' Department9' AND EMPLOYEE_PHONES.DIVISION_DESC='DivisionName' ORDER BY EMPLOYEE_PHONES.DEPARTMENT_DESC, EMPLOYEE_PHONES.LASTNAME", MyConn
While NOT rs.EOF%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%"><font face="Arial" size="2"><%Response.Write rs("LASTNAME") & ", " & rs("FIRSTNAME")%></font></td>
<td width="11%"><font face="Arial" size="2"><%Response.Write mid(rs("PHONE_EMAIL"), 4, 3) & " - " & right(rs("PHONE_EMAIL"), 4)%></font></td>
<td width="29%"><font face="Arial" size="2"><%Response.Write Ucase(rs("DIVISION_DESC"))%></font></td>
<td width="37%"><font face="Arial" size="2"><%Response.Write rs("JOB_TITLE_DESC")%></font></td>
</tr>
</table>
<%rs.MoveNext
Wend
rs.Close%>
<br>
<p align="center"><font face="Arial" size="2"><a href="#top">Back to the Top of the Page</a></font></p>
<%Set rs = Nothing
MyConn.Close
Set MyConn = Nothing%>
</body>
</html>