Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suppress a line

Status
Not open for further replies.

luvmy92

Programmer
Apr 2, 2003
7
US
I have searched the archives and have read some of the topics on this but am not sure if they pertain to me. I have a Detail section with two lines of 7 identical text boxes. The first line has Hardware Item information (item, description, qty, retail, discount pct, discount price, extended price). The second line is the same but pertains to Support for that item.

The first detail line will always be populated. The second may or may not. With the OnFormat event, I was able to make the boxes invisible but they still print a blank line. I have also put some code in the OnFormat event to check if SupportCode = "", and if so set Cancel = True. The problem with this is it doesn't print the first line either. I guess the Cancel = True must be for the entire section, and not line by line.

How do I suppress an individual line within a section that has multiple lines?

Thanks,

Mike
 
I have not tried this so it is just a thought.

You could try setting their height to a negligible amount & then making sure "Can Grow" is set to yes. In this way the second row should occupy minimum space when not populated.

Hope this helps. Regards
Warwick
 
Thanks for the reply, Warwick. I tried that and it does work to a certain degree. Unfortunately, the height difference is very noticeable.

Anybody else? Is there a way for me to not print an entire line in the detail section? It will always be the 2nd line of a two line detail section, if the condition is set.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top