If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Count in Query
How can I write a query that will count the following
three fields? Thanks, Kris Field: 133 Table: 2004_April Total: Count Criteria: .05 Field: 134 Table: 2004_April Total: Count Criteria: .08 Field: 135 Table: 2004_April Total: Count Criteria: .05 |
#2
|
|||
|
|||
Try something along the lines of
SELECT SUM(IIf([133] 0.05,1,0))AS count133, SUM(IIf([134] 0.08,1,0))AS count134, SUM(IIf([135] 0.05,1,0))AS count135 FROM 2004_April Hope This Helps Gerald Stanley MCSD -----Original Message----- How can I write a query that will count the following three fields? Thanks, Kris Field: 133 Table: 2004_April Total: Count Criteria: .05 Field: 134 Table: 2004_April Total: Count Criteria: .08 Field: 135 Table: 2004_April Total: Count Criteria: .05 . |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Stup-id question about Count query | Lunga | Running & Setting Up Queries | 8 | August 26th, 2004 04:35 PM |
query wizard error | Christen | General Discussion | 12 | August 13th, 2004 08:37 PM |
EXISTS reserved word in FROM clause | Stephanie Doherty | Running & Setting Up Queries | 6 | July 21st, 2004 01:15 AM |
Query By Form | Craig | Running & Setting Up Queries | 2 | June 1st, 2004 01:10 AM |