PC Review


Reply
Thread Tools Rate Thread

Count query records

 
 
Malvina
Guest
Posts: n/a
 
      30th Sep 2003
I am trying to output my query results to excel. The
amount of records I may have in the query more then 65536,
which is greater then row count in excel in one sheet.
Most likely, I will output my results to more then one
excel spreadsheet. I need to divide the query records,
and use the records partially. I know, how I would count
my records in the recordset:

Set rs = CurrentDb.OpenRecordset("Select count(*)AS
RowCount FROM qryDailyFinal", dbOpenSnapshot)

And again, I don't think that is what I am looking for.
Is there a way in splitting the recordset and use partial
records to copy to excel?

Thank you in advance,

Malvina
 
Reply With Quote
 
 
 
 
TC
Guest
Posts: n/a
 
      2nd Oct 2003
Get the query to include a primary key value from one of the tables
involved. Then do the query twice: once where PK < "H", then again where PK
>= "H" (or whatever: I'm sure you get what I mean).


HTH,
TC


Malvina <(E-Mail Removed)> wrote in message
news:10b001c38782$300862a0$(E-Mail Removed)...
> I am trying to output my query results to excel. The
> amount of records I may have in the query more then 65536,
> which is greater then row count in excel in one sheet.
> Most likely, I will output my results to more then one
> excel spreadsheet. I need to divide the query records,
> and use the records partially. I know, how I would count
> my records in the recordset:
>
> Set rs = CurrentDb.OpenRecordset("Select count(*)AS
> RowCount FROM qryDailyFinal", dbOpenSnapshot)
>
> And again, I don't think that is what I am looking for.
> Is there a way in splitting the recordset and use partial
> records to copy to excel?
>
> Thank you in advance,
>
> Malvina



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Count records in a query RonaldoOneNil Microsoft Access VBA Modules 1 10th May 2010 02:09 PM
Count Records in a Query Steve Microsoft Access Queries 2 4th Sep 2008 10:26 PM
How do I count the # of records in a query? =?Utf-8?B?S29vcm9zaA==?= Microsoft Access Queries 1 29th Jun 2007 12:32 PM
query count records shank Microsoft Access Queries 4 9th Jan 2007 10:34 PM
Count records in query by most records larpup Microsoft Access Queries 1 25th Jun 2006 12:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:33 PM.