Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 9th, 2006, 12:39 AM
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
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
Reply With Quote
  #2 (permalink)  
Old October 10th, 2006, 01:37 PM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
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
Reply With Quote
  #3 (permalink)  
Old October 10th, 2006, 01:45 PM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
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
Reply With Quote
  #4 (permalink)  
Old October 10th, 2006, 01:48 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:50 AM.


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