You could try building your "grid" with your text boxes and altering the border properties instead of using boxes for your "Cells"
Leigh
Main Topics
Browse All TopicsHello experts,
I have several expandable fields on my report. I would like to place several of these expandable fields into a table (read grid) within my report. When the fields expand, so to will the table or grid. Thus far I created a grid using boxes and lines to make my column and rows and place my fields in the cells. Of course when my field expands the content within the field bleeds over the cell lines.
Any help you can provide would be great! Working on a project with a deadline...
Thanks and cheers!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Using separate horizontal and vertical lines, rather than boxes, it is possible to adjust the height of the vertical lines at run-time, by reference to the section height. However this only works if your 'boxes' occupy the full height of a section, and is tedious to do.
An alternative is to use multiple subreports, with borders, but here you run the risk of getting several boxes alongside each other with different heights.
The route I usually take is to abandon vertical rulings, other than in the fixed-height header, and rely on horizontal ruling only, which will automatically move to accommodate the longest entry.
Folks,
Thanks for the quick response. Attached is screen shot. After looking at the screenshot, are you suggesting that I would need to create 15 separate textboxes to accomdate each "can grow" text field? Given the layout, if the last year columns had a great deal of data would the adjacent "2 years ago" column span as well? (this would be fine BTW).
This is all on a report so not certain if I want to deal with several subreports. And landscape is out of the question because the form must be portrait orientation.
Thoughts?
Thanks again in advance for looking at this.
Generally adjacent textboxes respond very well to a growth or shrink action by their neighbors, but be aware that VERY subtle differences in Top or Left values can cause oddities. In cases like this, I tend to manually all the Top values (i.e. select everything in the first "row" and set the Top properties all at once).
OK:
"expandable fields"=Textboxes with the Can Grow property set to yes.
The Textbox/border technique works well if all the boxes will "Grow" to the same Height, else they will end up "Staggerd" see screenshot 1.
In Access 2007 this is remedied by using grouped controls in a "Layout " see screenshot 2
There are several techniques to do what you are asking directly though, here is a popular one:
http://support.microsoft.c
JeffCoachman
Bellone;
<it is possible to adjust the height of the vertical lines at run-time, by reference to the section height.>
I never had any real luck with this.
Because if you put a message box on the format event of the detail section to check the Height, (Msgbox me.Section(0).Height) they will all be the same, regardless of ho much the control "grows".
It is my understanding that the textbox "Grow" is a "Graphical" feature.
(or did I miss something?)
Jeff
Jeff - It's a while since I did it, but the general concept was that the deepest control in the section would determine the section height, and because the report was effectively run twice to sort out things like the page numbering, one was able to make the height of the vertical lines the same as the ultimate section height.
It was cribbed from one of the well-known gurus - I'll see if I can turn up chapter and verse.
Anthony
Here we are: http://www.lebans.com/Prin
Yes, I am familiar with that link.
I though you were just talking about doing something like this:
Me.Line.Height=me.Section(
...which does not work quite the way one might expect.
With either system it just (to me at leaset) seems like a boat-load of code to do something that should be simple.
;-)
This is why I tend to agree with your first post:
<The route I usually take is to abandon vertical rulings, other than in the fixed-height header, and rely on horizontal ruling only, which will automatically move to accommodate the longest entry.>
...and be done with it.
If I need vertical lines, I'll use a table or query.
;-)
Jeff
Business Accounts
Answer for Membership
by: boag2000Posted on 2009-10-13 at 23:21:06ID: 25567732
First, can you clearly define what you mean by "expandable fields"?
Can you post a screenshot of this report with the fields Expanded and contracted?