how count records found by a query?

susanmre

New Member
Joined
Aug 26, 2004
Messages
1
Forgive if this is a dumb question... I am very new to Access. I have done many searches here but can not find the answer I need. Maybe I do not know exactly what to search for?

I have been given a huge database Table to work on.
I have several simple queries on it which work fine.

Boss would like to see, when the query runs, not only the query results but also, as part of the query, a count of how many results (records) the queries finds. I have not been able to figure out how to do this.

Any suggestions would be greatly appreciated.

SQL code for one of my queries can be supplied if needed.

Susan
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi Susan and welcome to Mr Excel.

You might want to try the dcount function. You can use it to count records within a query. Following is a link to a Microsoft article explaining how to use dcount here.

If this is not what you are after (or if it gets too hard), then you could present the information from the query in a report where it would be easier to count the records. There is an article explaining this here

Hope this helps. Andrew. :)
 
Upvote 0
You could just look at the statusbar type thingy at the bottom of the query which
tells you which record you are currently on and also how many records there are.
 
Upvote 0

Forum statistics

Threads
1,221,828
Messages
6,162,217
Members
451,752
Latest member
freddocp

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top