In Access, How do I hide records, but include them in the total

X

xeoimom

I'm running a report where I have work orders. They are grouped by appr and
comp. I need to create a report that will show all the appr tickets, but
give me a total count of appr and comp. I have the report generated the way
I want, with total count, but how do i hide just the comp tickets.
 
M

Marshall Barton

xeoimom said:
I'm running a report where I have work orders. They are grouped by appr and
comp. I need to create a report that will show all the appr tickets, but
give me a total count of appr and comp. I have the report generated the way
I want, with total count, but how do i hide just the comp tickets.


You could use the group header section's Format event to
make the comp details invisible:

Me.Section(0).Visible = (Me.groupfield <> "Comp")

Alternatively, you can use the detail section's Format event
to cancel processing of the comp records:

Cancel = (Me.groupfield = "Comp")
 

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

Top