ok people I now got the error message that pops up, is says:<br><br>-----------------------<br>error '80020009'<br>Exception occurred.<br>line 95<br>------------------------<br><br>and my code looks like this:<br><br>------------------------------------------<br><html><br><head><br><title>Database Test</title><br></head><br><body><br><% <br>Dim rs<br>Dim StrQuery<br>Dim strAction<br>Dim strSQL<br><br>strAction = Request.Form("CustQuery"

<br><br>Select Case strAction<br><br>Case "CustID"<br><br>StrQuery = "Select * from Customer where CustID = " & Cint(Request("SQLvariable"

)& ""<br><br>Case "CustName"<br><br>StrQuery = "Select * from Customer where CustName = " & "'" & Request("SQLvariable"

& "'"<br><br>Case "CustEmail"<br><br>StrQuery = Request("SQLvariable"

<br><br>Case "List All Customers"<br><br>StrQuery = "Select * from Customer"<br>Set rs = Server.CreateObject ("ADODB.Recordset"

<br>rs.Open StrQuery ,"DSN=Architron; UID=sa; PWD="<br><br>rs.MoveFirst<br><br>%><br><table cellpadding="1" cellspacing="1" BORDER="0" WIDTH="850" ><br><tr><td align= "center" width="70" bgcolor=#CCCCCC >Customer ID</td><br><td align= "center" width="150" bgcolor=#CCCCCC >Customer Name</td><br><td align= "center" width="120" bgcolor=#CCCCCC >Phone</td><br><td align= "center" width="120" bgcolor=#CCCCCC >Fax</td><br><td align= "center" width="150" bgcolor=#CCCCCC >E-mail</td><br><td align= "center" width="110" bgcolor=#CCCCCC >Space Allocated (MB)</td><br><td align= "center" width="60" bgcolor=#CCCCCC >Space Used</td></tr><br><%<br><br>While Not rs.EOF %><br><TR><TD align= "center" BGCOLOR="#99FF99"> <% Response.Write rs("CustID"

%></TD> <br><TD BGCOLOR="#99FF99"> <% Response.Write rs("CustName"

%></TD> <br><TD BGCOLOR="#99FF99"> <% Response.Write rs("Phone"

%></TD><br><TD BGCOLOR="#99FF99"> <% Response.Write rs("Fax"

%></TD><br><TD BGCOLOR="#99FF99"> <% Response.Write rs("email"

%></TD> <br><TD align= "center" BGCOLOR="#99FF99"> <% Response.Write rs("SpaceAllocationInMB"

%></TD><br><TD align= "center" BGCOLOR="#99FF99"> <% Response.Write rs("SpaceUsed"

%></TD></TR> <br><%<br>rs.MoveNext<br>Wend %><br><br></Table><br><% <br><br>Response.End <br><br>End select<br><br>Set rs = Server.CreateObject ("ADODB.Recordset"

<br>rs.Open StrQuery ,"DSN=Architron; UID=sa; PWD="<br><br>if Not rs.EOF then<br><br>Do While Not rs.EOF <br>%><br><Table align="center" WIDTH="800"><br><TD align="right" bgcolor=#CCCCCC WIDTH="160"><% Response.Write "Customer ID:" & "</TD>"&"<TD BGCOLOR=#FFFFCC>"& rs("CustID"

%></TD><br><TR><TD ><% Response.Write "Customer Name:" & "</TD>"&"<TD BGCOLOR=#FFFFCC>" & rs("CustName"

%></TD></TR><br><TR><TD ><% Response.Write "Address:" & "</TD>"&"<TD BGCOLOR=#FFFFCC>" & rs("Address1"

%></TD></TR><br><TR><TD ><% Response.Write ":" & "</TD>"&"<TD BGCOLOR=#FFFFCC>" & rs("Address2"

%></TD></TR><br><TR><TD ><% Response.Write ":" & "</TD>"&"<TD BGCOLOR=#FFFFCC>" & rs("Address3"

%></TD></TR><br><TR><TD ><% Response.Write ":" & "</TD>"&"<TD BGCOLOR=#FFFFCC>" & rs("Address4"

%></TD></TR><br><TR><TD ><% Response.Write ":" & "</TD>"&"<TD BGCOLOR=#FFFFCC>" & rs("Address5"

%></TD></TR><br><TR><TD ><% Response.Write "PostCode:" & "</TD>"&"<TD BGCOLOR=#FFFFCC>" & rs("PostCode"

%></TD></TR><br><TR><TD ><% Response.Write "Phone:" & "</TD>"&"<TD BGCOLOR=#FFFFCC>" & rs("Phone"

%></TD></TR><br><TR><TD ><% Response.Write "Fax:" & "</TD>"&"<TD BGCOLOR=#FFFFCC>" & rs("Fax"

%></TD></TR><br><TR><TD ><% Response.Write "E-mail:" & "</TD>"&"<TD BGCOLOR=#FFFFCC>" & rs("email"

%></TD></TR><br><TR><TD ><% Response.Write "Can Upload:" & "</TD>"&"<TD BGCOLOR=#FFFFCC>" & rs("CanUpload"

%></TD></TR><br><TR><TD ><% Response.Write "Can Download:" & "</TD>"&"<TD BGCOLOR=#FFFFCC>" & rs("CanDownLoad"

%></TD></TR><br><TR><TD ><% Response.Write "Space Allocated (MB) :" & "</TD>"&"<TD BGCOLOR=#FFFFCC>" & rs("SpaceAllocationInMB"

%></TD></TR><br><TR><TD ><% Response.Write "Space Used:" & "</TD>"&"<TD BGCOLOR=#FFFFCC>" & rs("SpaceUsed"

%></TD></TR><br></Table><br><%<br>Response.Write "<br>"<br>rs.MoveNext<br>Loop<br><br>strSQL = "Select * from FileDescription where CustId = " & rs("CustID"

<br><br>Set rsFileDesc = Server.CreateObject ("ADODB.Recordset"

<br>rsFileDesc.Open strSQL ,"DSN=Architron; UID=sa; PWD="<br><br>if rsFileDesc.eof then<br>response.write "<h2> User owns no files </h2>"<br>else<br>rsFileDesc.MoveFirst<br><br>%><br><table align= "center" cellpadding="1" cellspacing="1" BORDER="0" WIDTH="800" ><br><tr><td align= "center" width="70" bgcolor=#CCCCCC >File ID</td><br><td align= "center" width="150" bgcolor=#CCCCCC >File Name</td><br><td align= "center" width="120" bgcolor=#CCCCCC >File Size</td><br><td align= "center" width="120" bgcolor=#CCCCCC >Last Modified</td></tr><br><%<br><br>While not rsFileDesc.EOF %><br><tr><TD align= "center" BGCOLOR="#99FF99"> <% Response.write rsFileDesc("FileID"

%></TD><br><TD BGCOLOR="#99FF99"> <% Response.write rsFileDesc("FileName"

%></TD><br><TD align= "center" BGCOLOR="#99FF99"> <% Response.write rsFileDesc("Size"

%></TD><br><TD align= "center" BGCOLOR="#99FF99"> <% Response.write rsFileDesc("LastModified"

%></TD></TR><br><%<br>rsFileDesc.MoveNext <br>wend %><br><br></Table><br><% <br><br>end if<br><br><br><br>else<br> Response.write " No Match Record Found" & "<br>"<br>end if<br><br>rs.Close<br>rsFileDesc.Close<br>Set rs = Nothing<br>Set rsFileDesc = Nothing %><br></body><br></html><br>-----------------------------------------------------------<br><br>line 95 is the line that reads<br>"strSQL = "Select * from FileDescription where CustId = " & rs("CustID"

"<br><br>Grateful for any help.<br>