Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2007

    Unanswered: Ms Access count?

    I encounter problem with MS- Access

    select a.membeshipNo as mem, as name, a.dateOfPartyAnimal as since
    from GoldMemberAndPartAnimal a,StandardMember s, PartyAttendance x
    where s.membershipNo = a.membeshipNo and a.partyAnimal = true and a.goldMember = false and
    a.dateOfPartyAnimal <=#12/31/2006# and x.membershipNo = a.membeshipNo ;

    this is my query and i also want to display count(distinct a.membershipNo) but this one wont work in access? is it a problem with my query o problem with of my knowledge Ms access does not have count(distinct column) function....pls help me asap

  2. #2
    Join Date
    Sep 2003
    If you're going to alias a table you have to use the AS keyword ... COUNT does work in access. You will have to group on each column in the query as COUNT is an aggregate function.
    Back to Access ... ADO is not the way to go for speed ...

Posting Permissions

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