I have an asp script which has a Select Case block of code and some "other" code after it.<br><br>Here's an extract of my code:<br><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>Dim rsFileDesc<br><br>strAction = Request.Form("button"<br><br>Select Case strAction<br><br>Case "Search ID"<br><br>StrQuery = "Select * from Customer where CustID = " & Cint(Request("CustID")& ""<br><br>Case "Search Name"<br><br>StrQuery = "Select * from Customer where CustName = " & "'" & Request("CustName"& "'"<br><br>Case "Search Query"<br><br>StrQuery = "Select * from Customer"<br><br>Case "List All Customers"<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>rs.movefirst<br>While Not rs.EOF<br>Response.Write "Customer ID: " & rs("CustID"& "<br>"<br>Response.Write "Customer Name : " & rs("CustName" & "<br>"<br>Response.Write "Phone: " & rs("Phone" & "<br>"<br>Response.Write "Fax: " & rs("Fax" & "<br>"<br>Response.Write "E-mail: " & rs("email" & "<br>"<br>Response.Write "Space Allocated (MB) : " & rs("SpaceAllocationInMB" & "<br>"<br>Response.Write "Space Used: " & rs("SpaceUsed" & "<br>"<br>Response.Write "<br>"<br>rs.MoveNext<br>Wend<br><br>else<br>end if<br><------ want to terminate here ------------><br><br>Case "another case"<br><br>End select<br><br><------ "other" code -------><br><br>Set rs = Server.CreateObject ("ADODB.Recordset"<br>rs.Open StrQuery ,"DSN=Architron; UID=sa; PWD="<br><br>-----------------------------------------------<br><br>The case "List All Customer" has code in it which I want to process, I then want the asp script to stop or end so that it does not execute code any other code afterwards. Any help appreciated.<br><br>Taha