Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculations of a field in a form 1

Status
Not open for further replies.

kschomer

Technical User
Aug 1, 2000
37
US
I have created a form where I would like to count records from a table based on a criteria. I want to do a headcount from a personnel table. ie.
FORM:
field=Customer Support Rep. Unbound field=Count(Title)="CSSR"
field=OrderProcessing Unbound field=Count(Title)="OP"
etc.
TABLE: Last name, first name, title (which includes individuals with Title=CSSR or OP etc.

What is the syntax I need to use for the results of the field in the form be the calculation of the title in the table???
 
You could use DCount("[FieldName]", "TableName", "CriteriaField = 'Criteria'")
 
Thanks Jerry the DCount seems to work out fine. I appreciate your RAPID response. Thank you, Karen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top