473,887 Members | 2,327 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting height of detail section in VBA

I know I've asked this question in the last week, but no matter how hard I
look, I can't find it. So I'll type it again.

Is it possible to set the height of the detail section of a report using
vba? I want to be able to set the height in a table and have the detail
section adjust to that height, no matter what it is really set to. Is that
feasible, or is it no. If so, what is the syntax for setting the height of
the detail section of a report?

In retrospect, I may have deleted the question before I sent it because it
is unlikely that it can be done!

dixie
Nov 12 '05 #1
2 15056
"dixie" <di****@dogmail .com> wrote in message
news:JC******** *********@nnrp1 .ozemail.com.au ...
I know I've asked this question in the last week, but no matter how hard I
look, I can't find it. So I'll type it again.

Is it possible to set the height of the detail section of a report using
vba? I want to be able to set the height in a table and have the detail
section adjust to that height, no matter what it is really set to. Is that feasible, or is it no. If so, what is the syntax for setting the height of the detail section of a report?

In retrospect, I may have deleted the question before I sent it because it
is unlikely that it can be done!

dixie


Me.Detail.Heigh t = 400 will set the detail height to 400 twips, providing
that there isn't a control that forces it larger.
Nov 12 '05 #2
"dixie" <di****@dogmail .com> wrote in
news:JC******** *********@nnrp1 .ozemail.com.au :
I know I've asked this question in the last week, but no matter how hard
I look, I can't find it. So I'll type it again.

Is it possible to set the height of the detail section of a report using
vba? I want to be able to set the height in a table and have the detail
section adjust to that height, no matter what it is really set to. Is
that feasible, or is it no. If so, what is the syntax for setting the
height of the detail section of a report?

In retrospect, I may have deleted the question before I sent it because
it is unlikely that it can be done!

dixie


In the report module:

Private Sub Report_Open(Can cel As Integer)
Me.Detail.Heigh t = 1000
End Sub
--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3582
by: John Baker | last post by:
Hi: Stuck on another thing. On a report I am creating, I want to make the detail section one line vertically. However, in design view, I click on the page Footer Bar ,grab it with the "double arrow and cross", and try to move it up and while it moves, as soon as I release it jumps back to its original position. For some reason the property "height" for the detail section is stuck at a minimum of .5833". The height will go LARGER but...
5
7077
by: Bill Short | last post by:
I have a subreport in the detil section of my main report. The subreport can grow. I have a vertical line that fills the rest of the section. As you can probably guess I need to change the top and height of the line depending on the size of the subreport. During the OnPrint event I can capture the height of the subreport in twips and I already know the height that I need the detail section to be. What I can not do is change the top or...
2
4099
by: Martin | last post by:
Hi, I have an Access 97 report that mimics an official UK Covernment Customs document, with Page Headers and Footers presenting static data for each page (logos etc). The report is made up (typically) of several lines of detail data, with a few summary lines at the foot of these. I am (nearly) achieving the right "look and feel" by presenting the line items in the Report Detail section and the summary lines in the Report Footer BUT...
5
18778
by: Kevin Myers | last post by:
How can one obtain obtain the height of a MS Access 2K form? There is a width property, but I don't see a corresponding height property. I need to obtain the height of the form so that I can dynamically resize an object on the form in the form's Form_Resize method when a user resizes the form, both horizontally and vertically. Thanks, s/KAM
4
5395
by: ALESSANDRO Baraldi | last post by:
Hi and Good Sunday. Have i any way to Reduce at Runtime, with no change on Design View, the Height property of Detail_Section on my Report.....? The Section Property is Read_Only but if i encrease one Control inside with ctl.Height>Section.Height automatically the Section adapt the Height
1
2200
by: Robert | last post by:
I borrowed one of the forms from the MS Access Solutions database and altered it to fit my needs. The form was the 'EditProducts' form where you select a category from a combo which then populates another combo for products. Then when you select a product, the form displays the info for it. Everything is working well except, with the original, when the form is opened, the focus is on the SelectCategory combo box, while the form elements...
7
13433
by: NJonge01 | last post by:
Hi, I'd like to produce a report that basically looks like an excel printout. Description: Profile Print Report Detail Section with 3 bordered text boxes all text boxes are 'abutted' against each other (where one ends, the next begins) all text boxes have the 'can grow' property set to yes. Detail Section with 'can grown' = yes
0
2203
by: peter.c.bradley | last post by:
Hi folks, I have an Access report that has an unbound text box in the details section. The report also includes the standard headers and footers. The details section is populated by a query executed during the “Report_Open” event. Depending on the query, the details section can have 1 or more records and each record is a text string of variable length (the text box is set to grow). I’m trying to create the effect of a constant size...
8
16102
by: Andrus | last post by:
..NET 2 Winforms application. How to create new setting and set it default value in userSettings section of app.config file or overwrite existing setting value ? I found code below in this list which modifies Application setting section but how to add new item to userSettings ? Andrus.
0
9799
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11173
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10770
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10875
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9593
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7141
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6011
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4632
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4238
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.