Results 1 to 17 of 17

Thread: Multiple count - single table, fixed criteria [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    Glasgow, Scotland
    Posts
    202

    Resolved Multiple count - single table, fixed criteria [RESOLVED]

    hi,

    i need to look at a number of fields within a table, and count where it equals Zero.

    e.g.:
    Code:
    MyTable1
                   Field1     Field2     Field3     Field4
    Record1       5            0           5           1
    Record1       0            0           5           1
    Record3       1            5           0           0
    Record4       0            1           1           5
    so my query should retun:

    Field1 2
    Field2 2
    Field3 1
    Field4 1

    I had done this previously using Dcount, but its really slow.

    Done a search on here, and there are a couple of suggestions, but they dont seem to work for my situation.

    any suggestions appreciated

    TIA
    Last edited by Br1an_g; Apr 12th, 2005 at 05:23 AM. Reason: resolved post
    if you fail to plan, you plan to fail

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width