473,783 Members | 2,350 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting width of control on detail section of report using On Format

How do you set the width of a control in the detail section of a report
using the On Format event for the detail section?

Aug 9 '07 #1
4 4453
On Thu, 09 Aug 2007 22:20:01 GMT, Karl wrote:
How do you set the width of a control in the detail section of a report
using the On Format event for the detail section?
If [SomeControl] = "Whatever" Then
[SomeControl].Width = 2 * 1440
Else
[SomeControl].Width = 1*1440
End If

Note: All measurements are in twips (1440 per inch) so the above code
would chanbge the width from 1 inch to 2 inches if the criteria is
met.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Aug 9 '07 #2
Karl wrote:
>How do you set the width of a control in the detail section of a report
using the On Format event for the detail section?

Me.controlname. Width = inches * 1440

--
Marsh
Aug 9 '07 #3

I don't have a width option for the control. In the OnFormat event for the
Detail section, I typed

me.col1.w

and width is not a choice.

I'm using A2000

I have a 13 second Jing video showing this at
http://www.screencast.com/t/_KkRsnP_han

"Marshall Barton" <ma*********@wo wway.comwrote in message
news:tl******** *************** *********@4ax.c om...
Karl wrote:
>>How do you set the width of a control in the detail section of a report
using the On Format event for the detail section?


Me.controlname. Width = inches * 1440

--
Marsh

Aug 10 '07 #4
On Fri, 10 Aug 2007 14:37:30 GMT, Karl wrote:
I don't have a width option for the control. In the OnFormat event for the
Detail section, I typed

me.col1.w

and width is not a choice.

I'm using A2000

I have a 13 second Jing video showing this at
http://www.screencast.com/t/_KkRsnP_han

"Marshall Barton" <ma*********@wo wway.comwrote in message
news:tl******** *************** *********@4ax.c om...
>Karl wrote:
>>>How do you set the width of a control in the detail section of a report
using the On Format event for the detail section?


Me.controlname .Width = inches * 1440

--
Marsh
So what!!!
Type it out completely. Access Intellisence is not always correct.
For example, it will not show a Visible property for a PageBreak
control, but the control has one.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Aug 10 '07 #5

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

Similar topics

2
3751
by: John Hargrove | last post by:
I'm having trouble setting decimal place values in the results field of a sample management database I'm building for an environmental testing laboratory. The degree of sensitivity varies among test methods; consequently, some results are reported to 2 decimal places, some to 3, etc. The Results subform consists of Test Parameter, Result, Report Unit, Analysis Date, Analyst and other fields. The test parameter control is a drop-down...
2
5061
by: Salad | last post by:
Is there a way to determine which section of a form a control is located in code....besides using the tag property?
5
27849
by: dixie | last post by:
I want to be able to set the font size and font type for text in a text box on a report using VBA. I wan't to be able to control it from a setting in a table. The problem is that I don't know the syntax for setting either font type or font size for a text box on a report. Does anyone know? Help. Please! dixie
2
15050
by: dixie | last post by:
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...
3
4899
by: CSDunn | last post by:
Hello, I currently have an Access 2003 ADP Report/Subreport set up in which I have 12 subreports in a single main report that are located in a group header called 'PermnumHeader' (Permnum would be the same as a numeric 'StudentID'). All subreports initially have their visible property set to 'No'. I have a macro that evaulates the current value of a field in the detail section of the main report called 'Grade' and a field in the same...
3
472
by: Brian Keanie | last post by:
I had asked a question about the above subject a few days ago and between Stephen Lebans and Rog received the following answer. Would someone please tell this *Air Head* .... 1 What is meant by Air Code 2) Where and how do i use this valuable info you gave me. Seriously. Thanks again. Test for existance of image data, if NULL set the OLE Frame control's VISIBLE prop to NO. *Air Code*
3
7458
by: kmacon | last post by:
I have a form that contains a command button. The command button's OnClick event builds a report using the CreateReport and CreateReportControl functions and then opens the main report. I set the OnFormat property of the detail section in the subreport to a function which is located in a standard module. I am not able to access the subreport nor it's controls in the module. I need to hide a text box in the subreport if there is no...
1
6509
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting" setting to be "E_ALL", notices are still not getting reported. The perms on my file are 664, with owner root and group root. The php.ini file is located at /usr/local/lib/php/php.ini. Any ideas why the setting does not seem to be having an effect? ...
10
11761
by: sara | last post by:
Hi - Is it possible to hide the detail section of a report at run time? I have a report that prints all details, with summary lines. The user would like the report ALSO with just summary lines. It seems the simplest thing is to run the code (see below) once with the detail section showing, and a second time hiding the detail section. I can't figure out the code to do that and don't see it posted.
0
9480
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
10313
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
10147
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
10081
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
8968
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
6735
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
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.