If all records completed = true

lloydmav

Registered User.
Local time
Today, 23:10
Joined
Nov 15, 2002
Messages
75
I will have a query which sets a criteria from a table.

Now on an onclick procedure I want something that will say,
If all the records in the query have a field called "Completed" = True selected then I will do so and so.

The "Completed" field is a checkbox, so if all those records in the query have there checkbox ticked I want to do something.

How do I check this?

Thanks
 
Try this:-

If DCount("*", "QueryName") > 0 And (DCount("*", "QueryName") = DCount("*", "QueryName", "[Completed]")) then

......

End If
 
Bingo!

That works!

Thanks Alot, your help was much appreciated!
 

Users who are viewing this thread

Back
Top Bottom