Conditional paragraphs in a report

  • Thread starter Thread starter Mike Langensiepen
  • Start date Start date
M

Mike Langensiepen

How can I get conditional paragraphs in a report. Depending on the value of
a field in a record, I need a paragraph to be selected and printed in the
report.

Thanks

Mike
 
If you can do it in a query, then the report will not need code. If you do
have to use code to show or hide the label containing your paragraphs, use
the OnFormat event of the detail section.
 
Hi Mike,

In the On Format event of your report, have something like this:

if me.FIELD = VALUE_EXPECTED then
me.PARAGRAPHNAME.visible = true
else
me.PARAGRAPHNAME.visible = false
end if

Hope this helps.

Damian.
 

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

Back
Top