Results 1 to 2 of 2
  1. #1
    nyandry is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jan 2023
    Posts
    1

    Utilisation d'expression =compte() avec condition

    I created a list ETAT in access, I want to put the recap of boy and girl in the footer of each group.


    Now I use =compte(*), the result is the all number of boys and girls

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,563
    You need criteria to determine whether boy or girl?
    So perhaps create a hidden field that is set to 1 if boy. Then subtract that total to get the girls from your current total, or use two fields to calc boy or girl.
    Or perhaps if Boy then 1, else -1 and then use ABS() for the girls?

    That would not work in this country, you would need about 5 fields for all the variations.

    Checkout the IIF() function.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 1
    Last Post: 02-11-2021, 03:46 PM
  2. Replies: 7
    Last Post: 05-12-2018, 01:13 PM
  3. Replies: 5
    Last Post: 01-11-2016, 11:43 AM
  4. Replies: 6
    Last Post: 08-21-2015, 07:43 AM
  5. Adding a 3rd condition in IIf(IsNull expression
    By Holli in forum Programming
    Replies: 2
    Last Post: 05-20-2015, 01:04 PM

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