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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

record count w/ criteria

Status
Not open for further replies.

skate

Technical User
Nov 29, 2002
65
CA
I am trying to count the number of records in a subform w/ linked fields "Index". The following code works without the "SIndex" criteria, but I want to count the number of records w/ SIndex (of the subform) equalling a certain value. Why does this not work? I've even tried forms![mainfrm].[subform].form!SIndex, but it doesn't work.

= DCount("*", "Job Summary Query", "SIndex =" & SIndex And "Index =" & [Index])
 
try
= DCount("*", "Job Summary Query", "SIndex =" & SIndex & " And Index =" & [Index])



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top