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

Rolling Information Up from Detail to Header 1

Status
Not open for further replies.

perrymans

IS-IT--Management
Nov 27, 2001
1,340
0
0
US
I have a Pass/Fail field in the both the header and the footer.

The header field is unbound.
The detail field is bound.

I want the following logic:

1. If All PassFail in Detail = Pass Then PassFail in Header = Pass.
2. If Any records in PassFail in Detail = Fail Then passFail in Header = Fail.

How can this be done? Thanks. Sean.
 
This feels like a kludge but should work:

=IIf(Sum(IIf([PassFail]="Pass",1,0))=Count([PassFail]),"Pass","Fail")


Paul
MS Access MVP 2007/2008
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top