I swear, I need to change (Programmer) to (Programming idiot)
Here's my code:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/Connection_odbc_conn_dsn.asp" -->
<%
set rsPhone = Server.CreateObject("ADODB.Recordset"

rsPhone.ActiveConnection = MM_Connection_odbc_conn_dsn_STRING
rsPhone.Source = "SELECT FIRST_NAME, PHONE, LAST_NAME FROM DIRECTORY WHERE ROOM_NUM <> 'Dist' ORDER BY USERID ASC"
rsPhone.CursorType = 0
rsPhone.CursorLocation = 2
rsPhone.LockType = 3
rsPhone.Open()
rsPhone_numRows = 0
%>
<%
FileName="Connection_odbc_conn_dsn.htm"
Type="ADO"
HTTP="true"
Catalog=""
Schema=""
var MM_connDirectory_STRING = "dsn=Air-DB;"
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="42%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="60%"><b>NAME</b></td>
<td width="40%"><b>PHONE</b></td>
<td width="60%"><b>NAME</b></td>
<td width="40%"><b>PHONE</b></td>
</tr>
<%
col=1
While NOT rsPhone.EOF
If col=1 then %>
<tr valign="top">
<% End if %>
<td width="60%"><font face="Arial, Helvetica, sans-serif" size="-2"><%=(rsPhone.Fields.Item("LAST_NAME"

.Value)%>, <%=(rsPhone.Fields.Item("FIRST_NAME"

.Value)%></font></td>
<td width="40%"><font face="Arial, Helvetica, sans-serif" size="-2"><%=(rsPhone.Fields.Item("PHONE"

.Value)%></font></td>
<% If col=2 then %>
</tr>
<% End if
col = col +1
If col = 3 then col =1
rsPhone.movenext()
End if
Wend
%>
</table>
</body>
</html>
<%
rsPhone.Close()
%>
And here's the error I'm getting:
Microsoft VBScript compilation error '800a0400'
Expected statement
/baq/directory/TMP6eo8dtn0qk.asp, line 15
Type="ADO"
^
I'm new to VBScript, which is probably 9/10ths of my problem. Thanks,
Jennifer Sigman
Code-borrower extraordinaire
"They call us public servants for a reason..."