Results 1 to 2 of 2

Thread: Quantity of entrys from record set

  1. #1
    Join Date
    May 2004
    Posts
    2

    Quantity of entrys from record set

    Hi All!

    In a database (Access) i have many lines. In one of colomnes (Label) i have entrys "AAA", "BBB", "CCC", ... . I would like to know how many "AAA" and

    how many "BBB" we have in database.

    Is this possible to achieve this by using i = RecordSet.Fields (Label). ... mixad with other functions where i is an integer and RecordSet a record set?

    what a SQL query cal deliver a i as
    Integer, where i is quantity of lines
    labeled with "AAA".

    How can i do this with VBA?

    Thank You all!
    Alexander

  2. #2
    Join Date
    Jan 2003
    Location
    UK
    Posts
    277
    SELECT Count(MyColumnName)
    FROM MyTableName
    GROUP BY MyColumnName

Posting Permissions

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