Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query Question

Status
Not open for further replies.

kylebellamy

Programmer
Jan 24, 2002
398
US
How do I query a count from a column where the inputs are one of 4 pits of text? What I need is like this:

The photo rights column has the terms "Unknown", "N/A", "Yes" and "No". I have at the start of the design view, a simple GroupBy statement for the 10 sections that have publishing in them. What I want is a column for each of the terms with the count for that term.

Section|Unknown|N/A|Yes|No|Total
_header|0 |2 |4 |0 |6



 
Hi!

If I am understanding your question correctly you need to use a cross-tab query.



Jeff Bridgham
Purdue University
Graduate School
Data Analyst
 
Have a look at the IIf function.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Ok, this may seem a little on the dumb side but what I did was to create a query for each of the options above and them place them as sub-reports on one main report. I know this is the wrong way (or rather, a not particularly efficient way but it was a start).

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top