Thanks,
I fixed it this morning...
It was 'missing' apostrophe's.
But now I get an error like this for another page...
Active Server Pages, ASP 0113 (0x80004005)
On this blasted page > All it does is displays a form > which then picks a category of records to display
<%@language="VBscript"%>
<%
If request.form("quality") <> "" then
sDSNFile = "csv.dsn"
sPath = "D:\Webs\t-shirtprinter.com\data\"
' Time to construct our dynamic DSN
sDSN = "FileDSN=" & sPath & sDSNFile & _
";DefaultDir=" & sPath & _
";DBQ=" & sPath & ";"
' Building Data Connection
Dim Conn, rs
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open sDSN
Dim sql
sql = "SELECT * FROM stock.txt WHERE quality LIKE '" & request.form("quality") & "'"
set rs = conn.execute(sql)
response.write sql
End If
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- #BeginTemplate "/Templates/Default.dwt" -->
<head>
<!-- #BeginEditable "doctitle" -->
<title>T-shirtPrinter.com ADMINISTRATION</title>
<!-- #EndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../../default.css" type="text/css">
<script language="JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<h1><!-- #BeginEditable "Title" -->Administration Home<!-- #EndEditable --></h1>
<table width="100%" border="0" cellpadding="6" cellspacing="0" name="body">
<tr>
<td><!-- #BeginEditable "body" -->
<form name="form1" method="post" action="default.asp">
Please choose Quality
<select name="quality" onChange="this.form.submit()">
<option>select...</option>
<option value="perfect">Perfect</option>
<option value="irregular">Seconds</option>
</select>
</form>
<% If request.form("quality") <> "" then %>
<table width="95%" cellpadding="3" border="0" cellspacing="0">
<tr>
<td width="16%"><b>ID</b></td>
<td width="16%"><b>Garment</b></td>
<td width="16%"><b>Size</b></td>
<td width="16%"><b>Style</b></td>
<td width="16%"><b>Quantity</b></td>
<td width="16%"><b>admin</b></td>
</tr>
<%
col = ""
Do while not rs.EOF
If col = "" then
col = "#ccffff"
else
col = ""
End If
%>
<tr bgcolor="<%=col%>">
<td width="16%"><%=rs("ID")%></td>
<td width="16%"><%=rs("garment")%></td>
<td width="16%"><%=rs("size")%></td>
<td width="16%"><%=rs("style")%></td>
<td width="16%"><%=rs("quantity")%></td>
<td width="16%"><a href="update.asp?ID=<%=rs("ID")%>">Change</a> | <a href="delete.asp?ID=<%=rs("ID")%>">Delete</a></td>
</tr>
<%
Loop
%>
</table>
<% End If %>
<!-- #EndEditable --></td>
</tr>
<tr>
<td class="Links"><a href="http://www.t-shirtprinter.com">home</a> | <a href="../../services">services</a>
| <a href="../../sales">sales</a> | <a href="../../links">links</a> | <a href="../../contact.htm">contact</a></td>
</tr>
</table>
</body>
<!-- #EndTemplate -->
</html>
<%
If request.form("quality") <> "" then
rs.close
set rs = nothing
end if
%>