navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

How can a DB query and Count() go into same...

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> How can a DB query and Count() go into same...
Page: [1]
 
Guest


 
How can a DB query and Count() go into same... - 3/13/2001 21:20:00   
I can't figure out how to include a Count() of the results brought back by a query.

I have a query:
"Select * FROM results WHERE" & query & ""ORDER BY Timestamp DESC"

Is it possible to include a Count() of the results of the query in the above query?

Thanks for your help,

Pete Moss

Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: How can a DB query and Count() go into same... - 3/14/2001 15:19:00   
Theres a couple of ways Pete, one is, if you are looping through records to manualy count them like:

recCount = recCount + 1

do that within the loop and then write the value of "recCount"

Another is to use a client side cursor and use the obj.RecordCount method

------------------
Spooky
"I am Spooky of Borg. Prepare to be assimilated, babycakes!"
Subscribe to OutFront News
Database / DRW Q & A
The Spooky Login!


(in reply to Guest)
Page:   [1]

All Forums >> Web Development >> General Web Development >> How can a DB query and Count() go into same...
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts