473,399 Members | 3,603 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,399 software developers and data experts.

Determining where a control is on a form; header, detail, or footer

Is there a way to determine which section of a form a control is located
in code....besides using the tag property?

Nov 12 '05 #1
2 5014
"Salad" <hi**********@ranch.com> wrote in message
news:3F***************@ranch.com...
Is there a way to determine which section of a form a control is located
in code....besides using the tag property?


Use the .Section Property of the control

Select Case Me.Text0.Section
Case 0 'acDetail Form detail section or report detail section
Case 1 'acHeader Form or report header section
Case 2 'acFooter Form or report footer section
Case 3 'acPageHeader Form or report page header section
Case 4 'acPageFooter Form or report page footer section
Case 5 'acGroupLevel1Header Group-level 1 header section (reports
only)
Case 6 'acGroupLevel1Footer Group-level 1 footer section (reports
only)
Case 7 'acGroupLevel2Header Group-level 2 header section (reports
only)
Case 8 'acGroupLevel2Footer Group-level 2 footer section (reports
only)
End Select

--
Jeff Frent
Gargoyle, Inc.
www.gargoyleinc.com
Nov 12 '05 #2

Jeff Frent wrote:
Use the .Section Property of the control

Select Case Me.Text0.Section
Case 0 'acDetail Form detail section or report detail section
Case 1 'acHeader Form or report header section
Case 2 'acFooter Form or report footer section
Case 3 'acPageHeader Form or report page header section
Case 4 'acPageFooter Form or report page footer section
Case 5 'acGroupLevel1Header Group-level 1 header section (reports
only)
Case 6 'acGroupLevel1Footer Group-level 1 footer section (reports
only)
Case 7 'acGroupLevel2Header Group-level 2 header section (reports
only)
Case 8 'acGroupLevel2Footer Group-level 2 footer section (reports
only)
End Select


Thanks much.
Nov 12 '05 #3

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

Similar topics

0
by: Uttam | last post by:
Hello, I have a main form consisting of a Header, Detail and Footer. The Detail consists of a Continuous Form of records. Associated with each record is a "Select" Button for Selection. ...
2
by: richie | last post by:
Is there a way to program the control tip text to display the contents of a field form the underlying query. I have been able to do it but it only displays the first item in the detail section....
5
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...
5
by: Cro | last post by:
Hello Access Developers, I'd like to know if it is possible to perform a count in an expression that defines a control source. My report is based on a query. In my report, I want a text box to...
1
by: pemigh | last post by:
I have a report with pages breaking in the middle of text box controls. And it's not just on a line-by-line basis, but sometimes (in a situation that I can no longer recreate) just the bottom...
0
by: John Crowley | last post by:
I keep running into this over and over again... I want a block server control that renders a header and footer, and child controls in between. But I don't want a templated control, for the...
4
by: John Boy | last post by:
Hi, Can anyone help. This is really doing my nut in. 3 years ASP exp. and now doing .DOT which is a step in the wrong direction. Basically I am left with the code of a guy who has left. When I...
0
by: ARC | last post by:
I posted this before, but no response. Hopefully the MVP folks will know the answer. I'm not sure how other's are using the new split form, but what I like about it is I can design the header...
4
by: =?Utf-8?B?UmljaEI=?= | last post by:
I am trying to create a project using the ASP.NET AJAX accordion control. I would like to dynamically add panes to the control with a form template added when the pane is added. I have tried...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...

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.