Bind ToggleButtons to an OptionGroup in VBA

  • Thread starter Thread starter shaw
  • Start date Start date
S

shaw

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

Thank you,

Shaw
 
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.
 
Back
Top