I would like to know how to populate a table with the contents of a 2 field table in SQL. The way that I thought would work isn't.... Anyway here is the code I wrote to do it....
<%
Do While Not objRS.EOF
Response.Write "<TR>" & VBCRLF & "<TD width=% align=center valign=middle border=1>" & VBCRLF
Response.Write VBTAB & "<A href=whatever.asp?TA_ID=" & objRS("lngTopicAreaID"
& "&TA=" & Server.URLEncode(objRS("strTopicArea"
) & ">"
Response.Write objRS("strTopicArea"
Response.Write "</A>" & VBCRLF & "</TD>" & VBCRLF & "</TR>" & VBCRLF
objRS.MoveNext
Response.Write "<TD width=% align=center valign=middle border=1>" & VBCRLF
Response.Write VBTAB & "<A href=joe.asp?IW_ID=" & objRS("lngIndexWordID"
& "&IW=" & Server.URLEncode(objRS("strIndexWord"
) & ">"
Response.Write objRS("strIndexWord"
Response.Write "</A>" & VBCRLF & "</TD>" & VBCRLF & "</TR>" & VBCRLF
objRS.MoveNext
Loop
Call DBClose()
%>
It ends up throwing an exception error # 0x80020009
If anybody has any suggestions on how to do what I want to do, I would appreciate it.
Thanks in advance,
MWW22
<%
Do While Not objRS.EOF
Response.Write "<TR>" & VBCRLF & "<TD width=% align=center valign=middle border=1>" & VBCRLF
Response.Write VBTAB & "<A href=whatever.asp?TA_ID=" & objRS("lngTopicAreaID"
Response.Write objRS("strTopicArea"
Response.Write "</A>" & VBCRLF & "</TD>" & VBCRLF & "</TR>" & VBCRLF
objRS.MoveNext
Response.Write "<TD width=% align=center valign=middle border=1>" & VBCRLF
Response.Write VBTAB & "<A href=joe.asp?IW_ID=" & objRS("lngIndexWordID"
Response.Write objRS("strIndexWord"
Response.Write "</A>" & VBCRLF & "</TD>" & VBCRLF & "</TR>" & VBCRLF
objRS.MoveNext
Loop
Call DBClose()
%>
It ends up throwing an exception error # 0x80020009
If anybody has any suggestions on how to do what I want to do, I would appreciate it.
Thanks in advance,
MWW22