Question : print vertical columns

I want to print 5 vertical comments with a header line.  If comment 1 is space then comment 2 replaces comment 1 and comment 2 line gets elimated thru to comment 5.  I tried can grow and can shrink but space get printed for column 2 to 5.  Objective is that the header line will print and can expand depending on multiply comments.

Answer : print vertical columns

see attached mdb.

What I did is stack each of the comment textboxes immediately on top of one another.

I then set the textboxes to CanGrow, CanShrink = yes, as well as the detail section CanGrow and CanShrink = Yes.

Then, I set the Top margin in each of the textboxes to the amount of space I wanted between the text at the bottom of one textbox and the text at the top of the next textbox (I only did this for #2-5).

Then, because labels cannot shrink, I changed the labels to textboxes, set CanShrink = yes, and added some code to the Detail sections format event which sets the value of the textbox "label" to NULL or the name of the field being displayed, depending on whether there is any data in the associated field.

I left the borders turned on so you could see the size of each textbox, but you could set that to transparent when you have it working in your application.
Random Solutions  
 
programming4us programming4us