Solved

Record count from query to menu form

Posted on 2007-03-26
1
185 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

770 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