Results 1 to 3 of 3

Thread: Count(IIf( ...

  1. #1
    Join Date
    May 2025
    Posts
    2

    Count(IIf( ...

    hello
    I want to implement the formula for the "Number of Repetitions" and "Sum of Count" columns in Access (in a query or table)
    (For example, AA003 is repeated four times, showing 4 in one column and numbered from one to four in the other column)
    I am attaching their files
    Thank you very much
    Attached Files Attached Files

  2. #2
    Join Date
    May 2025
    Posts
    2
    Quote Originally Posted by habib100 View Post
    hello
    I want to implement the formula for the "Number of Repetitions" and "Sum of Count" columns in Access (in a query or table)
    (For example, AA003 is repeated four times, showing 4 in one column and numbered from one to four in the other column)
    I am attaching their files
    Thank you very much
    I want to generate the numbers in the given columns according to the Excel file with vba or ....

  3. #3
    Join Date
    Nov 2020
    Posts
    37
    Numbering rows in Access query is a common topic. Start with review of http://allenbrowne.com/ranking.html.

    Getting both stats in query will require a subquery. Build a query that does the aggregate (GROUP BY) count and join this query to table in another query that does the row numbering.

    Otherwise, build a report to produce this output using Sorting & Grouping features along with summary calcs and textbox properties. No VBA and no complex queries.
    Last edited by June7; 07-26-2025 at 11:04 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
  •