Dcount Records

  • Thread starter Thread starter Jean
  • Start date Start date
J

Jean

Is their a way to count records in a qry.

So if the qry generates 50 records have a field say 50
based on the change of the month.

So you would have

Month Count records
Jan 50
Feb 40
MAR 30
 
Is their a way to count records in a qry.

So if the qry generates 50 records have a field say 50
based on the change of the month.

So you would have

Month Count records
Jan 50
Feb 40
MAR 30

SELECT Format([ADate],"mmm") AS Exp, Count(Format([ADate],"mmm")) AS
exp2
FROM YourTable
GROUP BY Format([ADate],"mmm"), Month([ADate])
ORDER BY Month([ADate]);
 
Jean said:
Is their a way to count records in a qry.

So if the qry generates 50 records have a field say 50
based on the change of the month.

So you would have

Month Count records
Jan 50
Feb 40
MAR 30

SELECT Month_column, Count(*)
FROM TableName
GROUP BY Month_column
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Access Dcount function in access 0
Query Help Needed 3
Access Dcount (multiple criteria) 3
running sum in a query for a calculated field 15
Parameter in Qry 2
find records between two dates 4
query very slow 5
Crosstab qry not adding up 1

Back
Top