473,382 Members | 1,204 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 4420
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*********@wowway.comwrote in message
news:tl********************************@4ax.com...
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*********@wowway.comwrote in message
news:tl********************************@4ax.com...
>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
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...
2
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
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...
2
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...
3
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...
3
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...
3
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...
1
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"...
10
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....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.