Count in ms access record...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • natyboi
    New Member
    • Nov 2013
    • 15

    Count in ms access record...

    Hi i have a table named Employee having IDNo and a combobox named department with this row source
    INST'L SERVICES DEPT.
    FINANCE SERVICES DEPT.
    TECHNICAL SERVICES DEPT.
    OFFICE OF THE GM

    the question is how can i create a count in each row source?

    i already tried this code but it only shows #Error

    here's the code ive tried:

    =DCount("[IDNo]","Employee ","[department]='INST'L SERVICES DEPT.'")
  • Seth Schrock
    Recognized Expert Specialist
    • Dec 2010
    • 2965

    #2
    What is the name of the field that the combobox Department is bound to?

    Comment

    • Rabbit
      Recognized Expert MVP
      • Jan 2007
      • 12517

      #3
      You need to escape the single quote.

      Comment

      Working...