Critique: Microsoft Access Rectangle Object Documentation – Misleading Grouping Claim
Hi everyone,I’ve come across an issue in the Microsoft Access documentation for the Rectangle object (Microsoft Learn, dated 09/13/2021) that I think could mislead developers. I’d love to hear your thoughts.
The Problematic Text
The documentation states:This wording implies that a Rectangle control acts as a container that groups controls within its boundaries. In reality, that’s not how Access works."You can move a rectangle and the controls in it as a single unit by dragging the mouse pointer diagonally across the entire rectangle to select all the controls. The entire selection can then be moved to a new position."
Why It’s Misleading
- No Special Grouping Functionality: The described behavior is just standard group selection in Form Design View. You can select any controls—inside or outside a Rectangle—by dragging a selection box or using Shift-click. The Rectangle itself doesn’t create a grouping link.
- Implied Container Role: The phrase “controls in it” suggests the Rectangle behaves like a Tab Control or Option Group. But:
- Dragging the Rectangle alone moves only the Rectangle, not the controls inside.
- In VBA, controls inside a Rectangle still have the form as their .Parent, not the Rectangle. For example:
This returns the form’s name (e.g., "Form3"), confirming the Rectangle isn’t a programmatic parent.Code:MsgBox Me.Text6.Parent.Name
- Sequence Misconception: Some sources suggest drawing the Rectangle first and then placing controls inside it creates a grouping link. I tested this in Access 2021—it doesn’t. Controls don’t move with the Rectangle unless explicitly selected, regardless of drawing order.
Testing the Behavior
In Access 2021, I tried the following:- Drew a Rectangle control.
- Added a Text Box and Label inside its boundaries.
- Dragged the Rectangle’s border—only the Rectangle moved.
- Dragged a selection box over the Rectangle and controls—they moved together, but that’s just standard group selection.
Why This Matters
For new developers, the documentation could cause confusion by suggesting the Rectangle has grouping capabilities. In reality, it’s just a drawing tool, and the behavior described is nothing more than standard selection.Call to Action
Has anyone else noticed this misleading wording? Have you tried using a Rectangle as a “container” based on this guidance, only to discover it’s just group selection?I’m considering submitting feedback via the Microsoft Access Feedback portal to suggest a revision, perhaps along the lines of:
What do you think? Have you run into similar issues with Access documentation? Let’s discuss!“A Rectangle is a visual control for drawing shapes. To move it with nearby controls, select them together using a selection box or Shift-click, as with any group of controls.”
Last edited by a moderator: