• DCount for Report Level (Access2003)

    • This topic has 3 replies, 2 voices, and was last updated 17 years ago.
    Author
    Topic
    #451112

    I need to count Names of the Employees and I am using =Count([EmplNames]) placed into group header.
    I figured some names are duplicates I need to display but do not need to count.
    I had tried DistinctCount but it is probably not an Access function. I had searched on Internet but it doesn’t seem like there is anything on Report level.
    please, advice.
    Thanks

    Viewing 0 reply threads
    Author
    Replies
    • #1109775

      Create a query that returns distinct (unique) employee names, e.g.

      SELECT DISTINCT EmployeeName FROM tblEmployees

      Let’s say you name it qryDistinct

      You can then use =DCount(“*”, “qryDistinct”) to display the count of distinct employees.

      • #1109803

        I have this Report that should display non distinct names.
        It all goes off a large table already built. I can not have a separate query just for the count.

        Like GroupHeader_Activity
        Name1—–Activity1
        —————Activity2
        Name2—–Activity1

        GroupFooter_Activity Total Names 2
        and I get Total Names 3

        • #1109809

          Why can’t you have a separate query just for the count? scratch

    Viewing 0 reply threads
    Reply To: DCount for Report Level (Access2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: