Sorry about being late putting this back up but here is my code. I have a Do While Loop finding all the Nodes with a Parent ID=0. The nodes have their own ID thats attached to an article. An Article can belong to 1 or many nodes and Nodes can belong to 1 to many articles. When I click on the Node Name that shows up I want it to show all the articles thats associated with it.
<body>
<div id="header">
<!-- #include file="incConnection.asp" -->
<!-- #include virtual="/custom/header.html" -->
<h2>MO Web Index</h2>
<div id="help"></div>
</div>
<div id="content">
<div id="sub-nav">
<div id="search">
<h2>Search</h2>
<form id="form1" name="form1" action="
method="post">
<p> <INPUT id="txtSearch" size="25" search="txtSearch" width="300"></p>
<p> </p>
<input class="submit" id="Image1" type="image" height="20" width="80" src="/images/submit.gif"
value="Search" name="submit">
</form>
</div>
</div>
</div>
<div id="main-content">
<form method="post" name="MainForm" ID="MainForm">
<%
dim adocon
dim rsMOWebIndex
dim strSQL
set adocon=server.CreateObject("ADODB.Connection")
set rsMOWebIndex=server.CreateObject("ADODB.Recordset")
adocon.ConnectionString=gstrCon
strSQL = "SELECT tblNodeName.NodeID, tblNodeName.NodeName, tblNodeName.ParentID, tblArticle.ArtID," & _
" tblArticle.ArtName, tblTieIn.ArtPath " & _
" FROM tblNodeName INNER JOIN (tblArticle INNER JOIN tblTieIn ON tblArticle.ArtID = tblTieIn.ArtID)" & _
" ON tblNodeName.NodeID = tblTieIn.NodeID " & _
" WHERE (((tblNodeName.ParentID)=0)) "
adocon.Open
rsMOWebIndex.Open strSQL,adocon
'Loop through the recordset
%>
<%Do While not rsMOWebIndex.EOF%>
<%Response.Write ("<br>")%>
<%Response.Write ("<b>")%>
<%Response.Write ("<a>")%>
<%Response.Write (rsMOWebIndex("NodeName"))%>>
<%Response.Write ("<br>")%>
<%rsMOWebIndex.MoveNext%>
<%Loop
rsMOWebIndex.Close
adocon.Close
set rsMOWebIndex=nothing
set adocon=nothing
%>
</form>
</div>
<DIV class="footer"></DIV>
</body>