How to unbind an option button? 
Author Message
 How to unbind an option button?

Hi,

I am developing a multi-paged form for Outlook 98,
based on a Task form. On one page I added two option
buttons, which I bound to a Task field, using the
Properties dialog.
Later on I changed my mind and wanted to "unbind" the
option buttons.
Normally, this can be done by deleting the original
bound button and then adding a new unbound one, using
the Toolbox. This is the only way to do it, since it is
not possible to bind the control to "no field" in the
Properties dialog.

But in the case of my option buttons even this approach
does not work: my newly added option buttons got bound
again to the old Task field.
It only happens on the page I am working on. Adding an
unbound option button on the other pages in the form
works fine. I tried copying an unbound option button
from another page, but as soon as it is copied, the
control is again bound to the same Task field!

Of course I could copy all the controls and my code to
a new form, but I would like to know if there is
something else I can do about it.

Daniel



Sat, 31 Aug 2002 03:00:00 GMT  
 How to unbind an option button?
Try putting a frame on the form, then adding your new option buttons inside
the frame. You can make the frame invisible by setting its properties so
that it's the same color as your form.

Background: The problem is that the form itself is a frame. Once you add a
bound option button, the frame/form remembers the field and assumes you want
all subsequent option buttons to work with the others in the frame.
--
Sue Mosher
Author of
  "Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours"
  "Microsoft Outlook 2000 E-mail and Fax Guide"

Outlook and Exchange solutions at http://www.slipstick.com


Quote:
> Hi,

> I am developing a multi-paged form for Outlook 98,
> based on a Task form. On one page I added two option
> buttons, which I bound to a Task field, using the
> Properties dialog.
> Later on I changed my mind and wanted to "unbind" the
> option buttons.
> Normally, this can be done by deleting the original
> bound button and then adding a new unbound one, using
> the Toolbox. This is the only way to do it, since it is
> not possible to bind the control to "no field" in the
> Properties dialog.

> But in the case of my option buttons even this approach
> does not work: my newly added option buttons got bound
> again to the old Task field.
> It only happens on the page I am working on. Adding an
> unbound option button on the other pages in the form
> works fine. I tried copying an unbound option button
> from another page, but as soon as it is copied, the
> control is again bound to the same Task field!

> Of course I could copy all the controls and my code to
> a new form, but I would like to know if there is
> something else I can do about it.

> Daniel



Sun, 01 Sep 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Option group/option button

2. Option Group/Option Button

3. Option Button - 2 buttons selected at once.

4. Working with an Option Button Array and Checkbox Button Array

5. Option Button Syntax on a Form

6. comboBox/option button?

7. Option buttons /Groups - Any other ActiveX Controls

8. Option buttons - using vba to determine selection - Help

9. How hide menuitens like tools options or disable com-add ins button

10. GroupName Property for Option Buttons

11. option buttons on the user form

12. Option button on top of a Frame?

 

 
Powered by phpBB® Forum Software