Results 1 to 2 of 2
  1. #1
    macking is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    1

    Count of field where field =

    How do you write a statement to get the count of a field for wherever that field is = to XXX ?


    To try to make my question a little better look at it like this:

    My Table:

    Server / User / DateTime / Action

    Row 1: miami1 / carlosj / 05-04-2010 11:23:31 / Exported source
    Row 2: miami1 / davidc / 05-04-2010 11:24:41 / Ran DB import
    Row 3: denver7/ carlosj / 05-04-2010 11:27:29 / Exported source

    I need to have all of the servers grouped in my report.



    Under each grouping I need several totals for exampe: total count of action where action = Exported source

    But I don't want to write a separate query for each total for each server.

    Can Access know that I am on the group miami and pull the count for action where = exported source?

    Thanks again for your expert help

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by macking View Post
    How do you write a statement to get the count of a field for wherever that field is = to XXX ?
    to answer this question, it would be:
    Code:
    select count(field) from table
    
    where field = xxx

Please reply to this thread with any new information or opinions.

Similar Threads

  1. How to track/count the occurence of a particular field
    By jessica.ann.meade in forum Reports
    Replies: 4
    Last Post: 02-09-2011, 01:41 PM
  2. Replies: 9
    Last Post: 12-15-2010, 01:44 PM
  3. Query to group and count field entries
    By newtoAccess in forum Queries
    Replies: 4
    Last Post: 11-29-2010, 09:19 AM
  4. Showing Count in form field
    By randolphoralph in forum Forms
    Replies: 11
    Last Post: 05-17-2010, 03:52 PM
  5. How to count charcter or text in field
    By nshaikh in forum Queries
    Replies: 3
    Last Post: 09-12-2008, 10:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums