Solved

Record count from query to menu form

Posted on 2007-03-26
1
193 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 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