Code for Reports

D

Double A

Is it possible to add a line of code to a report that will print a solid line
if a given condition is met? I have a detail section of a report with the
following fields: Info and Comments. The Info and Comments are connected to
a selected category. Each category has a different number of steps that will
populate in the Info field. After the last Info step has been printed on the
report, I would like a solid line of specified length to be drawn before the
comment is printed - to separate the Info from the Comment. Possible?

thanks.
 
F

fredg

Is it possible to add a line of code to a report that will print a solid line
if a given condition is met? I have a detail section of a report with the
following fields: Info and Comments. The Info and Comments are connected to
a selected category. Each category has a different number of steps that will
populate in the Info field. After the last Info step has been printed on the
report, I would like a solid line of specified length to be drawn before the
comment is printed - to separate the Info from the Comment. Possible?

thanks.

You can add a line to the report where you wish to see it.
Then, using code, you can code that section's Format event to make the
line visible or not, depending upon a condition.

Me.LineName.Visible = Me.[SomeControl] = SomeCondition
 

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