If I have the following, is there any way of displaying the information in the Secretaries() array while looping through a recordset. EG If the UserID value in the array matches the rs("SecretaryID") value then display the details (firstname, surname, extension) of the secretary?
<%
rs.Open "SELECT UserID, FirstName, Surname, Extension FROM Users WHERE Secretary=TRUE", DB
Secretaries=rs.GetRows()
rs.Close
%>
Then
<table>
<%
rs.Open "SELECT UserID, FirstName, Surname, Extension, SecretaryID FROM Users WHERE Lawyer=TRUE", DB
Do While Not rs.EOF
%>
<tr>
<td><% = rs("FirstName") %></td>
<td><% = rs("Surname") %></td>
<td><% = Extension") %></td>
</tr>
<%
rs.MoveNext
Loop
rs.Close
%>
</table>
<%
rs.Open "SELECT UserID, FirstName, Surname, Extension FROM Users WHERE Secretary=TRUE", DB
Secretaries=rs.GetRows()
rs.Close
%>
Then
<table>
<%
rs.Open "SELECT UserID, FirstName, Surname, Extension, SecretaryID FROM Users WHERE Lawyer=TRUE", DB
Do While Not rs.EOF
%>
<tr>
<td><% = rs("FirstName") %></td>
<td><% = rs("Surname") %></td>
<td><% = Extension") %></td>
</tr>
<%
rs.MoveNext
Loop
rs.Close
%>
</table>