right now I have the following asp code:<br><br><br>IDfield="CustID"<br>scriptresponder="edcustomer.asp"<br>scriptresponder2="record.asp"<br><br>set conntemp=server.createobject("adodb.connection"<br>conntemp.open myDSN<br><br>StrQuery = "SELECT f.CustId, max(fd.UploadDate)as LastDate into tempererer from FileDescription f, FileDescription fd, Customer where f.CustId = fd.CustId and f.FileID = fd.FileID Group by f.CustId Order By f.CustId"<br>srt = "Select tempererer.CustId,Customer.CustName,tempererer.LastDate from Customer, tempererer where Customer.CustID = Tempererer.CustId"<br><br><br><br>set allcust=conntemp.execute(StrQuery)<br>set allcust=conntemp.execute(srt)<br>allcust.movefirst<br><br><br>%><br><table align = center cellpadding="1" cellspacing="1" BORDER="0" WIDTH="600" ><br><tr><td align= "center" width="70" bgcolor=#CCCCCC ></td><br><td align= "center" width="100" bgcolor=#CCCCCC >Customer ID</td><br><td align= "center" width="150" bgcolor=#CCCCCC >Customer Name</td><br><td align= "center" width="130" bgcolor=#CCCCCC >Last Backup</td></tr><br> <%<br><br> While Not allcust.EOF <br><br>%><br><TR><TD align= "center" BGCOLOR="#99FF99"> <%my_link=scriptresponder & "?id=" & allcust(idfield)%><br><a HREF="<%=my_link%>">Update</a> </TD><br><TD align= "center" BGCOLOR="#99FF99"><% Response.Write allcust("CustID" %></TD> <br><TD BGCOLOR="#99FF99"><%my_link=scriptresponder2 & "?id=" & allcust(idfield)%><br><a HREF="<%=my_link%>"><%Response.Write allcust("CustName" %></a></TD> <br><TD BGCOLOR="#99FF99"><% Response.Write allcust("LastDate" %></TD></tr><br> <br> <%<br> allcust.MoveNext<br> response.flush<br> Wend %><br> </Table><br> <% <br><br>------------------------------------------<br><br>As you can see I have two queries executed on the recordeset, this creates a new table called tempererer and this creates problems when the query is run more then once, How would I write my SQL query to give me the same effect without creating a new table?<br><br>Grateful for any help, thanks.<br>