Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting records from a query...

Status
Not open for further replies.

dodgyone

Technical User
Jan 26, 2001
431
GB
I have a series of queries which give results depending upon certain date. From these I create charts etc.

What I would like is to count how many records there are once the query has completed (the date criteria is not fixed so the query requests the dates as you start it up). I would then like to be able to place this total in a table, in a certain row.

Is DCount the best options... how does it work etc?

Thanks,

Marcus
 
Is this eventually going on a report?
Its easier to do it there.
=Count(me!textbox)

Queries sometimes won't let you do too much.

DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Does the following one help?
select count(*), t.a, t... from (select a, b, c from x) as t John Fill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top