Results 1 to 4 of 4
  1. #1
    gpbanseo is offline Novice
    Windows Vista Access 2003
    Join Date
    Jul 2011
    Posts
    2

    Finding and counting (not records but entries)

    Hi all:


    Appreciate any help you may be able offer. I have a table that contains inspection records. Table contains field "vendor_nr" which is a numeric 6 digit field. I need to be able count how many records each vendor_nr has. I have tried a query and using both SUM and COUNT but they both eiher total the vendor_nr or suchlike. In other words I would like the database to tell me how many instances of a vendor occur for reporting to management. Any ideas?
    Thanks a Million

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Welcome to the forum!

    If I understand what you want, using an aggregate query with Count() should have given you what you needed, so I have to ask what did the query look like?


    I would structure the query as follows:

    SELECT vendor_nr, Count(vendor_nr) as CountForVendor
    FROM yourtablename
    GROUP BY vendor_nr

  3. #3
    gpbanseo is offline Novice
    Windows Vista Access 2003
    Join Date
    Jul 2011
    Posts
    2

    Smile Counting records without summing numeric field

    Thanks a million - this worked perfect.

  4. #4
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You're welcome; good luck with your database.

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

Similar Threads

  1. Counting Only Certain Records
    By jtphenom in forum Queries
    Replies: 9
    Last Post: 03-29-2011, 01:25 AM
  2. Finding Records with Form
    By b123 in forum Forms
    Replies: 10
    Last Post: 10-04-2010, 06:59 PM
  3. Finding Records that are not there!
    By TrudyD1474 in forum Queries
    Replies: 2
    Last Post: 06-18-2010, 04:41 PM
  4. finding records in a database....
    By softspoken in forum Forms
    Replies: 1
    Last Post: 04-23-2010, 11:17 PM
  5. Replies: 2
    Last Post: 01-18-2010, 11:52 AM

Tags for this Thread

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