473,666 Members | 2,138 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 1597
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
5045
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
2033
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
7448
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
5923
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
4507
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
3100
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
4079
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
11748
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
2811
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
8445
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8781
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...
0
8640
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...
1
6198
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
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2771
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
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1776
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.