Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 9th, 2006, 12:39 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default Report Formatting

Hi Everyone,

Here is the problem... I am putting together a report that has a simple recordset, and displays about 5 fields straight across on the report. I would like to put gridlines around these fields, to define each field/cell.

The data often has fields that are several lines long, and so I have set the Can Grow property to allow them to resize to the length of the data. The problem then is that the gridlines are staggered based on the size of the field.

Is there anyway to set all fields to be the same height, or at the very least, if I were to put in a series of vertical lines, could I in effect dock these to the top and bottom of the detail field, so that they would grow/shrink with the data?

Any suggestions would be appreciated.

Thanks

Mike

Mike
EchoVue.com
__________________
Mike
EchoVue.com
 
Old October 10th, 2006, 01:37 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

You mean something like

Me.Line1.Height = Me.Textbox1.Height

kind of thing?

You would have to check for the tallest textbox, and then set all your lines to that height. Interesting problem.

Lemme look...


mmcdonal
 
Old October 10th, 2006, 01:45 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

This took the height of a textbox on one of my reports in twips:

Me.Text9.Height

If you use this, you can check the heights of all of your text boxes, choose the tallest one, and then set the line heights like this:

iHeight = 'tallest line height plus some value.

Me.Line1.Height = iHeight
Me.Line2.Height = iHeight
etc...

Something like that.

Does that help?

mmcdonal
 
Old October 10th, 2006, 01:48 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Hi Mike,

Thanks, I found a similar solution in the Access Cookbook last night. Yours actually looks simpler, so I'll try and get it implemented tonight.

Thanks again,

Mike

Mike
EchoVue.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Report Formatting gamt67 Access 1 March 20th, 2006 11:15 AM
problem with formatting the crystal report tallapaneni Crystal Reports 1 May 24th, 2005 01:38 PM
Query/formatting problem in report mega Access VBA 8 September 16th, 2004 04:29 AM
Report Formatting John Anthony Access VBA 3 October 15th, 2003 11:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.