Print Detail section only conditionally

  • Thread starter upsman via AccessMonster.com
  • Start date
U

upsman via AccessMonster.com

I have a report that I run from a query. The report is divided into 3
sections. The 1st two sections will always print but the third section may
or may not print depending on whether a name field is filled-in or not. I
have placed the 1st two sections into individual group header sections on the
report and the 3rd section I put in the Detail section. How do I get the
Detail section of the report to print only if my name field is filled-in? I
don't see an 'On No Data' event in the Detail section so I don't know how to
stop it from printing if it doesn't need to. If what I've done is not the
best or proper way to do it , please let me know. I just need to print the
1st sections all the time but the 3rd section only sometimes.

Thanks,
Rod
 
M

Marshall Barton

upsman said:
I have a report that I run from a query. The report is divided into 3
sections. The 1st two sections will always print but the third section may
or may not print depending on whether a name field is filled-in or not. I
have placed the 1st two sections into individual group header sections on the
report and the 3rd section I put in the Detail section. How do I get the
Detail section of the report to print only if my name field is filled-in? I
don't see an 'On No Data' event in the Detail section so I don't know how to
stop it from printing if it doesn't need to. If what I've done is not the
best or proper way to do it , please let me know. I just need to print the
1st sections all the time but the 3rd section only sometimes.


Just cancel the detail section's Format event when the name
is missing. Maybe all you need is:

Cancel = IsNull([name field])
 

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