V
victorcamp
The feature to group controls has been available in Access for quite a while
(Format->Group). Is there any way to refer to one of these groups via VBA?
I've searched the Object Model without luck.
Here's the reason:
I use the Form_Resize() event to dynamically move things around as the user
adjusts the form size. In particular, growing and shrinking an embedded
subform. It all works slick! However, there's an option group beneath the
subform that has to be moved along with the growing or shrinking subform.
As anyone who's ever tried moving option groups with code knows, moving the
group does not move its options, which have to be moved separately. If you
move the group, it simply stretches the frame to cover its new location and
the original location of the options. Then you move the options. Then you
resize the frame.
What I'd like to do is group the option group, along with its option buttons
and labels, then just move this group as one, like you can if you were
actually in Design View. I would have expected something like,
Form(0).Groups(2).Top = ... But no such luck.
Has anyone found a way to do this? The applications I'm working with are in
Access 2003 and Access 2000.
(Format->Group). Is there any way to refer to one of these groups via VBA?
I've searched the Object Model without luck.
Here's the reason:
I use the Form_Resize() event to dynamically move things around as the user
adjusts the form size. In particular, growing and shrinking an embedded
subform. It all works slick! However, there's an option group beneath the
subform that has to be moved along with the growing or shrinking subform.
As anyone who's ever tried moving option groups with code knows, moving the
group does not move its options, which have to be moved separately. If you
move the group, it simply stretches the frame to cover its new location and
the original location of the options. Then you move the options. Then you
resize the frame.
What I'd like to do is group the option group, along with its option buttons
and labels, then just move this group as one, like you can if you were
actually in Design View. I would have expected something like,
Form(0).Groups(2).Top = ... But no such luck.
Has anyone found a way to do this? The applications I'm working with are in
Access 2003 and Access 2000.