Basicaly i put in a location through a link and want the output but this only works for half of my calls.
I have 10 diferent location with and without data. it works for some with and without data and not others.
The error I get is
Line 49 is the second call of [highlight]rsPC("Patched")[/highlight]
Manic
-----------------------------
I've broken it again !!
-----------------------------
I have 10 diferent location with and without data. it works for some with and without data and not others.
The error I get is
Code:
Error Type:
(0x80020009)
Exception occurred.
/asset/show_location.asp, line 49
Line 49 is the second call of [highlight]rsPC("Patched")[/highlight]
Code:
<%
If rsPC.BOF and rsPC.EOF Then
Response.Write "</table>"
Response.Write "<h2 align='center'>No equipment found for "& R &" </h2>"
Else
rsPC.MoveFirst
Do Until rsPC.EOF
Response.Write "<tr><td colspan='5' height='1' class='Nav_Admin_Line'></td></tr>"
Response.Write "<tr><td valign='top'>" & rsPC("Patched") & "</td>"
Response.Write "<td valign='top'>" & rsPC("PC_Name") & "</td>"
Response.Write "<td><a href='show_user.asp?ID="& rsPC("ID") & "'>" & rsPC("User") & "</a></td>"
Response.Write "<td valign='top'>" & rsPC("Dept") & "</td>"
Response.Write "<td valign='top'>" & rsPC("IP") & "</td></tr>"
rsPC.MoveNext
Response.Write "<tr><td colspan='5' height='1' class='Nav_Admin_Line'></td></tr>"
[highlight]Response.Write "<tr class='show_odd'><td valign='top'>" & rsPC("Patched") & "</td>"[/highlight]
Response.Write "<td valign='top'>" & rsPC("PC_Name") & "</td>"
Response.Write "<td><a href='show_user.asp?ID="& rsPC("ID") & "'>" & rsPC("User") & "</a></td>"
Response.Write "<td valign='top'>" & rsPC("Dept") & "</td>"
Response.Write "<td valign='top'>" & rsPC("IP") & "</td></tr>"
rsPC.MoveNext
Loop
End If
%>
Manic
-----------------------------
I've broken it again !!
-----------------------------