?
Solved

Record count from query to menu form

Posted on 2007-03-26
1
Medium Priority
?
209 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 200 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

718 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