Report Format (1 Viewer)

kitty77

Registered User.
Local time
Today, 04:48
Joined
May 27, 2019
Messages
712
I have a report that normally has two pages to it. Is there any way to not have the second page based on if [results] = "fail"
Rather than having to creating a separate report.

Thanks
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:48
Joined
May 7, 2009
Messages
19,245
use filter on your report or on your report recordsource.
 

kitty77

Registered User.
Local time
Today, 04:48
Joined
May 27, 2019
Messages
712
What would I put in the recordsource or filter?
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 04:48
Joined
May 21, 2018
Messages
8,529
A Report lets you do a Group By. Make your Group By top level on the Pass / Fail Comment and Sort Descending. In the properties set it to break after the group. May require a Pass/Fail group footer to break after the Passes.
 

kitty77

Registered User.
Local time
Today, 04:48
Joined
May 27, 2019
Messages
712
I'm using (below) So, I only have one record at a time. So, really nothing to group.

strWhere = "[Mrecordid]=" & Me!Mrecordid
DoCmd.OpenReport strDocName, acViewReport, , strWhere
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 04:48
Joined
May 21, 2018
Messages
8,529
there any way to not have the second page based on if [results] = "fail"
You have to give more detail. Reading that, we would assume the first page is RESULTS that passed and the second page are RESULTS that failed. Maybe a screen shot of what you have would help.
 

Users who are viewing this thread

Top Bottom