Countif or dcount???

  • Thread starter Thread starter Graham Feeley
  • Start date Start date
G

Graham Feeley

Hi need some help here please
Table Name = AllRunners
Field = p1
Field = res1st

I would like a textbox to reflect the count of all records where P1 = res1st
both fields are integers

I do not know if the textbox goes in the Form Footer or a SubForm.
Also not sure which to use "DCount" , "Countif" , "Countiff"

Hope this is clear enough
Regards
Graham
 
Thanks Duane this works perfectly .....as u would know it would, and I
appreciate your help on this
Regards
Graham
 
Hi need some help here please
Table Name = AllRunners
Field = p1
Field = res1st

I would like a textbox to reflect the count of all records where P1 = res1st
both fields are integers

I do not know if the textbox goes in the Form Footer or a SubForm.
Also not sure which to use "DCount" , "Countif" , "Countiff"

Hope this is clear enough
Regards
Graham

There are no CountIf or CountIIf functions in Access.
DCount will count all instances in the Table where the criteria is
met, which may or not be the same as what is in the form's record
source.

You can sum the instances where the criteria is met (True or -1).
ABS() returns the positive value.

In the form header (or footer)
=ABS(Sum([P1]=[res1st]))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Access Dcount (multiple criteria) 3
Still struggling with DCount 8
DCount problem redux 4
Dcount Problem 2
Access MS Access DCount function problem 0
DCount Bridging Nested Tables (?) 3
Countif formula perhaps 7
Counting filtered records... 7

Back
Top