Disappearing Column Data
I have what appears to be very strange problem (and the fact that I'm an ASP newbie probably has something to do with it :-) ). My ASP is pulling query data just fine, except when I try and display too many columns. If I keep the number of columns to 4, then then I get data. If I add a fifth column, then it doesn't show (even though it might have shown in 4-columns). Here's my code:
<%
Option Explicit
Dim l_name
Dim prob
Dim rsCustSurvey
Dim raction_summary
Dim Conn
l_name = Request.QueryString("l_name")
prob = Request.QueryString("prob")
' response.write(l_name)
set Conn=Server.CreateObject("ADODB.Connection")
set rsCustSurvey = server.CreateObject("ADODB.Recordset")
set raction_summary =server.CreateObject("ADODB.Recordset")
Conn.open "Driver={SQL Server}; Server=serverL01;Database=ARSystem;UID=u;p;"
set rsCustSurvey = conn.Execute ("Select ProblemDescriptionTrunc, Action_Summary, ProblemItem, Problem_Solution002, " _
& " Problem_Description002, RootCause, LastModifiedBy, dbo.TTS_Main.AssignedGroup, dbo.TTS_Main.Last_Name, dbo.TTS_Main.First_Name, " _
& " dbo.TTS_Main.Tracker, dbo.TTS_Main.Status, dbo.TTS_Main.AssignedGroup, AssignedTechnician, ModificationHistory "_
& " From tts_main " _
& " Where ProblemDescriptionTrunc LIKE '%" & prob & "%' " _
& " And Last_Name LIKE '%" & l_name & "%' ")
if rsCustSurvey.EOF then 'traps for IF recordset is empty THEN:
Response.Write "There is no data"
Response.End
end if
%>
<table border="1">
<tr>
<td align="center"><b>Problem Description</td>
<td align="center"><b>Action Summary</td>
<td align="center"><b>Root Cause</td>
<td align="center"><b>Last Name</td>
<td align="center"><b>Problem Solution</td>
</tr>
<%do while not rsCustSurvey.EOF%></do>
<tr>
<td>
<%response.write rsCustSurvey("ProblemDescriptionTrunc")%>
</td>
<td>
<%response.write rsCustSurvey("Problem_Solution002")%>
</td>
<td>
<%response.write rsCustSurvey("RootCause")%>
</td>
<td>
<%response.write rsCustSurvey("Last_Name")%>
</td>
<td>
<%response.write rsCustSurvey("Action_Summary")%>
</td>
</tr>
<%rsCustSurvey.MoveNext%>
<%loop%>
</table>
<%
set rsCustSurvey = nothing
set conn = nothing
%>
See anything out of whack?
thanks!
Dale
|