Bind ToggleButtons to an OptionGroup in VBA

S

shaw

Does anyone know how to bind ToggleButtons/OptionButtons to an OptionGroup
using VBA in Access?

Thank you,

Shaw
 
D

Dirk Goldgar

shaw said:
Does anyone know how to bind ToggleButtons/OptionButtons to an
OptionGroup using VBA in Access?

I haven't ever done it except in testing just now, but you specify the
option frame as the toggle button's parent when you create the control
using CreateControl. For example,

CreateControl "Form1", acToggleButton, acDetail, "Frame0", _
"", 1440, 720, 720, 720

See the help entry on CreateControl for details.
 
Top