Jim Hewson
JHewson at karta.com
Wed Jun 9 11:53:57 CDT 2004
It is in the OnFormat of the section. Doesn't seem to work. I calculated the height the rectangle should be when the text box grows. I put that number to equal the height. Still doesn't work. I even tried to change the height if the length of text in the text box was greater than the width. Still didn't work. I'm going to try Rocky's suggest now. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Roz Clarke Sent: Wednesday, June 09, 2004 11:37 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Resize Rectangle on Report Which event are you doing this in? If it's in the OnFormat of the section containing the controls it *ought* to work! Roz -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: 09 June 2004 17:31 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Resize Rectangle on Report Lembit, I'm trying to change the height of the rectangle because I have several of these in a row on the report. I have tried Me!myRectangle.Height = Me!myTextBox.height + WhatEver The rectangle sizes to the first record but not the rest. Thanks, Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lembit Soobik Sent: Wednesday, June 09, 2004 11:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Resize Rectangle on Report Jim, I have not done this for a long time, but I would set the rectangles width to the textbox width plus something. you will have to find in which event to do this, but the code would be something like me.myRectangle.width = me.myTextbox.width + whatever HTH Lembit Soobik ----- Original Message ----- From: "Jim Hewson" <JHewson at karta.com> To: "AccessD" <accessD at databaseadvisors.com> Sent: Wednesday, June 09, 2004 4:55 PM Subject: [AccessD] Resize Rectangle on Report How do I resize a rectangle on a report? A2K I have a label and a text box inside a rectangle located in a group header. The text box is below the label and the can grow event is set to Yes. Occasionally the text box grows but I can't seem to make the rectangle grow with it. How can I make it grow? Thanks, Jim ---------------------------------------------------------------------------- ---- > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com