Results 1 to 2 of 2
  1. #1
    sjs94704 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Location
    Berkeley, CA
    Posts
    20

    Using the 'Count' function in a totals query

    OK, I have a database that manages Work Orders. There are 7 statuses that each work order could possibly be in. They are:

    0 - NEW
    1 - Open


    2 - WIP (Work In Progress)
    3 - Serviced
    4 - Reviewed
    5 - Followed Up
    6 - Closed

    I have several menus for Admin, Manager, Supervisor and Technicians. I have 7 textboxes on each of these menus that are all grouped together to display the count of how many work orders are in the system for each status. I have totals queries for each status that use the Count function to get the total number of work orders, but having trouble knowing how to get those numbers to show up in the text boxes....HELP !!

    The work order table has a lot of fields in it so I won't list all the irrelevant ones here, but the fields that are important are:

    WorkOrderT (Name of Table)
    WorkOrderID
    CustomerID
    StatusID

    Suggestion on how I can do this?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Why do you have separate queries for each status? One aggregate query can return the count for all status. Why have 4 forms (menus)? What is different between these forms that one won't serve? Bind form to the one aggregate query and bind textboxes to the fields.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 02-24-2014, 02:19 PM
  2. Totals Query Record Count with Criteria
    By rmoreno in forum Queries
    Replies: 3
    Last Post: 06-07-2013, 09:16 AM
  3. Can I count Null values in a totals query?
    By bgephart in forum Queries
    Replies: 2
    Last Post: 08-29-2012, 10:13 AM
  4. Count Function in query
    By tjstromquist in forum Queries
    Replies: 1
    Last Post: 04-03-2012, 10:40 AM
  5. Query using count function
    By wasim_sono in forum Queries
    Replies: 0
    Last Post: 11-28-2007, 03:16 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