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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top