Solved

Record count from query to menu form

Posted on 2007-03-26
1
181 Views
Last Modified: 2013-12-25
Using Microsoft Access & VB

I need to put a count of certain type of records from a file on the opening menu.
 
Count such as:
Open - 123
Closed - 3
Archived - 12
 
The file has a total of 138 records, 123 open, 3 closed, and 12 Archived.
 
I did a query to count a field called Status and it does the correct count.
 
I cannot get the count for each of the type of records to print on the menu form.
 
How do I select the proper count from the query?
 
0
Comment
Question by:Don-White
1 Comment
 
LVL 1

Accepted Solution

by:
fjaf earned 50 total points
ID: 18796166
you need to group by record type like:

select recordtype, count( recordtype)
from mytable
where mycondition
group by recordtype

Hope this helps!!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now