Method 1: Examine the Title Property
To determine whether a control is a group filter control or a dropdown list control, look at the
Title property of the control.
By default, a dropdown list control almost always has the title of DropDownList(x) when it is created. The only time that this is not true is when a control is originally created as a group filter control. When a second group filter control is added to a section, the original group filter control is "demoted" to a dropdown list box. This "demoted" control will not have a title of DropDownList(x) by default.
Method 2: Examine the Sorting and Grouping Dialog Box
Each section of a data access page can have a single group filter control. In order to determine which control in that section is a group filter control, examine the
Sorting and Grouping dialog box. To do so:
- On the View menu, click Sorting and Grouping.
- Select the Group Record Source or section for which you want to determine the group filter control.
The name of the control that is specified in the Group Filter Control property is the group filter control for that section.
Method 3: Examine the HTML Tag Attributes
The Select tag that you use to create a dropdown list control and the Select tag that you use to create a group filter control are similar. The only difference is that to create a group filter control, the Select tag uses an OPTION tag.
The following is an example of the HTML source code that creates a group filter control. Note that this code has an OPTION tag.
<SELECT id=City
style="HEIGHT: 0.187in; LEFT: 2.708in; POSITION: absolute; TOP: 0.416in; WIDTH: 1in"
tabIndex=13 title=City><OPTION selected></OPTION></SELECT>
The following is an example of the HTML source code that creates a dropdown list control. Note that this code does not have an OPTION tag.
<SELECT id="company name"
style="HEIGHT: 0.208in; LEFT: 3.833in; POSITION: absolute; TOP: 1in; WIDTH: 1in"
tabIndex=7 title=DropdownList0></SELECT>