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

Count of If Statement

Status
Not open for further replies.

nike2000

Technical User
Apr 1, 2003
61
GB
I have a field in a Continuous Form that is populated by the following If Statement:

=IIf([MigrationTeamOk],"No","Yes")

The Field format is a Yes/No Checkbox.
At the top of the form can I have a count of all those records that are 'Yes'?
The Form works off a Query, and no fields are updated in a Table.
If so, how do I go about it?
Thanks,
Nike


 
Create a control with DataSource:
=DCount ("*", "QueryName", "MigrationTeamOK=Yes")
replacing QueryName with the name of your query.

John
 
Thanks for getting back to me but unfortunately it hasn't worked. I have also added the query name.
Do you have any other suggestions?
Nike
 
try
DCount ("*", "QueryName", "MigrationTeamOK=true")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top