473,836 Members | 1,472 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I didn't know this could be done (rename the Detail section of aForm)

I had a Sproc which returned a field called Details.

I had the Form Wizard create a continuous form with the Sproc as the
RecordSource (as a shell for me to modify).

I renamed the Details textbox to txtDetails.

Except I didn't. I grabbed DETAIL from the pulldown and renamed it to
TxtDetail.

Arrgggggggggghh hhh!

Although the form showed the Detail section, it was now called
TxtDetail. So code like
Me.InsideHeight = Me.Detail.Heigh t * 10
failed
and the object browser showed no Detail member for the form.

Well it's solved now. Perhaps this has happened to you. Perhaps it's a
useful thing to squirrel away for some time when you think you might be
going crazier, as I did.

(Access 2003 ADP)
Can one do this in earlier versions of Access? Surely the name of Form
Sections is/should be ReadOnly?

--
Lyle Fairfield
Jan 13 '06 #1
4 1609
Same with A97 and A2k here
I can rename the form-section to TestDetail or whatever.
So I can find me Me.TestDetail (and not Me.Detail anymore).

These section-names are definitely not readonly,
I did not even expect them to be...
Sometimes I rename report-sections for clarity (when I have lots of grouping)

Arno R
"Lyle Fairfield" <ly***********@ aim.com> schreef in bericht news:YM******** ********@read2. cgocable.net...
I had a Sproc which returned a field called Details.

I had the Form Wizard create a continuous form with the Sproc as the
RecordSource (as a shell for me to modify).

I renamed the Details textbox to txtDetails.

Except I didn't. I grabbed DETAIL from the pulldown and renamed it to
TxtDetail.

Arrgggggggggghh hhh!

Although the form showed the Detail section, it was now called
TxtDetail. So code like
Me.InsideHeight = Me.Detail.Heigh t * 10
failed
and the object browser showed no Detail member for the form.

Well it's solved now. Perhaps this has happened to you. Perhaps it's a
useful thing to squirrel away for some time when you think you might be
going crazier, as I did.

(Access 2003 ADP)
Can one do this in earlier versions of Access? Surely the name of Form
Sections is/should be ReadOnly?

--
Lyle Fairfield

Jan 13 '06 #2
Lyle Fairfield wrote in message <YM************ ****@read2.cgoc able.net>
:
I had a Sproc which returned a field called Details.

I had the Form Wizard create a continuous form with the Sproc as the
RecordSource (as a shell for me to modify).

I renamed the Details textbox to txtDetails.

Except I didn't. I grabbed DETAIL from the pulldown and renamed it to
TxtDetail.

Arrgggggggggghh hhh!

Although the form showed the Detail section, it was now called TxtDetail. So
code like
Me.InsideHeight = Me.Detail.Heigh t * 10
failed
and the object browser showed no Detail member for the form.

Well it's solved now. Perhaps this has happened to you. Perhaps it's a useful
thing to squirrel away for some time when you think you might be going
crazier, as I did.

(Access 2003 ADP)
Can one do this in earlier versions of Access? Surely the name of Form
Sections is/should be ReadOnly?


Not only that, the names are localized. The Detail section in the
Norwegian version is called "Detalj" ;-)

I like using the constants, which disambiguates such calls.

Me.InsideHeight = Me.Section(acDe tail).Height * 10

--
Roy-Vidar
Jan 13 '06 #3
Sorry for using the wrong account ....
I believe this is (at the least) the third time I made this mistake.

Maybe (I hope) I can delete the other account soon...

Arno R
Jan 13 '06 #4
Good Idea. I'll use it.

Jan 13 '06 #5

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

Similar topics

2
5068
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?
3
2044
by: lauren quantrell | last post by:
I have an Access 2000 form that I open showing only the header. The form's detail section visible property is set to false. The detail section contains a subform. Using a command button, I use the code: Me.Detail.Visible = true Me.SubFormName.Form.RecordSource = "sprocXYZ" It returns the following error: "2455 - You have entered an expression that has an invalid reference to the property Form/Report."
3
7462
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...
4
5938
by: 2D Rick | last post by:
In Access2003 and XP. My forms detail section hides behind the header when I scroll down to see controls off screen. This is similar to freezing a pane in Excel. I'd rather this did not happen but can't find the property that controls this. When the form first opens some of the controls are behind the header and scrolling is required to see them. Help, thanks, RICK
1
4521
by: fixedpower | last post by:
I have an Access 2000 DB for a financial company. I have the table structure completed, but I am having trouble with the report. Basically, I have a Client tbl, a StockShares tbl, and a StockOptions tbl. One client can have many types of StockShares and StockOptions. I need to detail the StockShares and StockOptions on one page. The hierarchy should look like this: CLIENT NAME StockShares
10
3116
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using vs2005 and .net 2.0. I started 2 threadpool threads. How do I know when they're done with their tasks? Thanks. ThreadPool.QueueUserWorkItem(new WaitCallback(PopulateContextTable)); ThreadPool.QueueUserWorkItem(new WaitCallback(PopulatAdTable)); -- Thanks.
2
4085
by: trgpham | last post by:
hi, I have a few records displayed in the Detail section of the continuous form, and a line of comment at the bottom of the screen in the Form Footer section. However there is a wide gap between the last record in the Detail section and the comment textbox in the Form Footer. How can I make the Form Footer section displaying just after the last record in the Detail section? Thanks in advance!
10
11779
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.
1
2825
by: peterkennett | last post by:
OK, I’m new to all this, so forgive me if I missed some easy answer to this problem! I have a report, which is actually going to be a letter. I had no problem adding my return address, salutation and top two paragraphs in the HEADER section. I also have no problem with the DETAIL section printing out the few records I need to show. But now I want to add a closing paragraph immediately after the DETAIL section. I tried to add it in the FOOTER...
0
10859
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...
1
10602
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
10260
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9388
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...
1
7795
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6984
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
5829
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4463
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
4023
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.