Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 17th, 2003, 07:18 PM
Registered User
 
Join Date: Jun 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default MS Excel number of rows issue

I have an asp page which displays the record sets in an excel spread
sheet. I have around 85000 records and I learnt that excel will not
be able to process more than 64000 (around) rows in one sheet. I am
not sure how to break this and make excel to print the rest of the
records in another sheet in the same workbook from ASP. This might be
a real simple solution but I am very stumped. I looked around at
various place - maybe any of you out there have encountered this
problem or can point me to the right place. ANy pointers/help will be
greatly appreciated.
Thanks!
My code is as below:
<%Option Explicit%>
<% Response.ContentType = "application/vnd.ms-excel" %>



<HTML>
<HEAD>
<TITLE>Frequency of Machine Per Customer</TITLE>
</HEAD>
<BODY>
<BODY>
<TABLE BORDER=0>
<TR>
<TD align=center colspan=8><H2>The count of number of Machine by
CustomerID Report</H2></TD>
</TR>
<TR>
<TD align=left colspan=8><% Response.Write "Created on " &
FormatDateTime(Date, 1) %></TD>
</TR>
</TABLE>

<TABLE BORDER=0>
<TR><TD align=left colspan=8>&nbsp;</TD></TR>
</TABLE>
<TABLE BORDER="1">
<TR>
<TD align=center><STRONG>Customer ID</STRONG></A></TD>
<TD align=center><STRONG>Number of Machine Counts</STRONG></A></TD>
</TR>
<%
Dim objRs :Set objRs = Server.CreateObject("ADODB.Recordset")
Dim objConn:Set objConn = Server.CreateObject("ADODB.Connection")
Dim intCheckCounter
Dim intLnCnt
objConn.Open "Provider=SQLOLEDB.1;Initial Catalog=Web;Data Source=" &
SERVER_DB & ";UID=777;PWD=222"

With objRs

.Open "select custid_maritz, count(*) As RecordCount from
dbo.tblmachine group by custid_march order by custid_march", objConn
If Not .EOF Then .MoveFirst

Do While Not .EOF

Response.Write "<TD align=left>" & objRs.Fields("custid_march")
& "</TD>"
Response.Write "<TD align=left>" & objRs.Fields("RecordCount")
& "</TD>"
Response.Write "</TR>"
.MoveNext
Loop
.Close

End With
Set objRs = Nothing
Set objConn = Nothing
%>

</TABLE>



</BODY>
</HTML>





Similar Threads
Thread Thread Starter Forum Replies Last Post
disoplaying number of rows. ashokparchuri ADO.NET 2 April 21st, 2005 04:28 AM
total number of rows in a recordset lian_a Classic ASP Basics 2 February 8th, 2005 08:13 AM
count the number of rows in the table crmpicco Javascript How-To 4 February 2nd, 2005 12:58 AM
Copying Multiple Rows in MS Excel 2K using VB .Net Azhar Akbari Excel VBA 2 January 27th, 2005 10:04 AM
Autofill in unknown number of rows ashu_gupta75 Excel VBA 2 August 9th, 2004 06:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.