Dcount function criteria excluding one possible answer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Manuel Baptista
    New Member
    • Aug 2010
    • 2

    Dcount function criteria excluding one possible answer

    Good afternoon,

    I am attempting to count those records within a data base that do not match one variable answer in a given field.
    To put it more clearly, I want to count the companies in a database that are headquartered in several several countries except one, namely Portugal. What is the Dcount function formula that must be used?

    Best reagards,

    Manuel Baptista
  • missinglinq
    Recognized Expert Specialist
    • Nov 2006
    • 3533

    #2
    Substituting your actual names:
    Code:
    DCount("*", "CompanyTable", "[CountryFieldName] <>'" & "Portugal" & "'")
    Welcome to Bytes!

    Linq ;0)>

    Comment

    Working...