jgoodman00
Programmer
- Jan 23, 2001
- 1,510
I have the following in an asp page:
<%@ Language=VBScript %>
<% Option Explicit %>
<!--#include file="cabinet/DatabaseConnect.asp"-->
<!--#include virtual="/asp/15/adovbs.inc"-->
<html>
<%
Dim objRS, strSQL
Set objRS = Server.CreateObject("ADODB.Recordset"
strSQL = "SELECT * FROM qryItemData_Outgoing"
objRS.Open strSQL, objConn
%>
<body>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="9%">Recipient</td>
<td width="6%">Outgoing ID</td>
<td width="24%">ToFor</td>
<td width="17%">ActionDate</td>
<td width="14%">OutgoingMethod</td>
<td width="15%">Sender</td>
<td width="15%">Comments</td>
</tr>
<%
'Display the contents of the table
Do While Not objRS.EOF
Response.Write "<TR>"
Response.Write "<td width='9%'>" & objRS("RecipientID"
& "</td>"
Response.Write "<td width='6%'>" & objRS("OutgoingID"
& "</td>"
Response.Write "<td width='24%'>" & objRS("ToFor"
& "</td>"
Response.Write "<td width='17%'>" & objRS("ActionDate"
& "</td>"
Response.Write "<td width='14%'>" & objRS("OutgoingMethod"
& "</td>"
Response.Write "<td width='15%'>" & objRS("Sender"
& "</td>"
Response.Write "<td width='15%'>" & objRS("Comments"
& "</td>"
Response.write "</TR>"
'Move to the next row in the table
objRS.MoveNext
Loop
'Clean up our ADO objects
objRS.Close
%>
</table>
</body>
</html>
If I open the query in Query Analyzer, every column of every record has data.
However, when this page is loaded in IE the last three columns are empty.
If I change one of the working columns to a comment, the next column is output.
Any ideas why this is happening?
James Goodman MCSE, MCDBA
<%@ Language=VBScript %>
<% Option Explicit %>
<!--#include file="cabinet/DatabaseConnect.asp"-->
<!--#include virtual="/asp/15/adovbs.inc"-->
<html>
<%
Dim objRS, strSQL
Set objRS = Server.CreateObject("ADODB.Recordset"
strSQL = "SELECT * FROM qryItemData_Outgoing"
objRS.Open strSQL, objConn
%>
<body>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="9%">Recipient</td>
<td width="6%">Outgoing ID</td>
<td width="24%">ToFor</td>
<td width="17%">ActionDate</td>
<td width="14%">OutgoingMethod</td>
<td width="15%">Sender</td>
<td width="15%">Comments</td>
</tr>
<%
'Display the contents of the table
Do While Not objRS.EOF
Response.Write "<TR>"
Response.Write "<td width='9%'>" & objRS("RecipientID"
Response.Write "<td width='6%'>" & objRS("OutgoingID"
Response.Write "<td width='24%'>" & objRS("ToFor"
Response.Write "<td width='17%'>" & objRS("ActionDate"
Response.Write "<td width='14%'>" & objRS("OutgoingMethod"
Response.Write "<td width='15%'>" & objRS("Sender"
Response.Write "<td width='15%'>" & objRS("Comments"
Response.write "</TR>"
'Move to the next row in the table
objRS.MoveNext
Loop
'Clean up our ADO objects
objRS.Close
%>
</table>
</body>
</html>
If I open the query in Query Analyzer, every column of every record has data.
However, when this page is loaded in IE the last three columns are empty.
If I change one of the working columns to a comment, the next column is output.
Any ideas why this is happening?
James Goodman MCSE, MCDBA