Toggle Buttons - how to link them?

A

Angyl

This has got to be a simple code I just don't know.

How do you take two default "toggle buttons" and code them so when you press
one, the other pops up and when you press the other the first pops up?

Thanks!
 
S

Sue Mosher [MVP-Outlook]

Can you give us a bigger picture of the functionality these toggle buttons will add to your form?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
A

Angyl

They're the standard "toggle" buttons that come with Outlook in the toolbox
when you're developing a form.
 
S

Sue Mosher [MVP-Outlook]

As long as they're in the same frame (including the built-in frame of the form page itself), clicking one should pop up the other and vice versa.

I was asking what functionality they add. In other words, what interaction is the user going to have with them? Why were they preferred over option buttons?
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
A

Angyl

Well I was planning on using the option buttons but they aren't working right
for me either (select one deselects the other).
 
S

Sue Mosher [MVP-Outlook]

Then, let's back up and find out what you *really* want to do on this form, without worrying about what controls you're using. What role would these controls (again, don't worry about which) play in either gathering data or providing other functionality? Your detailed answer will help us figure out what controls would work best in your scenario.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
A

Angyl

What I REALLY want to do? Well I've modified the default contact form in a
new folder we've created for keeping a 'database' of all our clients. There
are lots of 'one or the other' choices the users will want to select with
this form such as choosing whether or not a client offers direct deposit to
their employees, (Y or N), what date payroll will be delvered to their
employees (M, T, W, TH or F). Most of the time I just use combo boxes for
these types of options because they're the ones that I know how to format
already but a little variety in style and choice would add to the asthetic
appeal of the form.
 
S

Sue Mosher [MVP-Outlook]

.... but too much variety will make it difficult for users to fill out the form efficiently.

Let's start with Yes/No choices. Those are best handled with a check box. And they're easy to create. Just drag your custom Yes/No field from the Field Chooser to the form page and Outlook will automatically create a check box.

Where you have 3-5 choices, either option buttons, a combo box or a list box would be the most appropriate. Option buttons are the trickiest to set up, but are probably the most intuitive for users, because they clearly show that the choices are mutually exclusive. On an Outlook form, if you have more than one button set, put each in a frame. THen, for each button in a set, bind it to the same Outlook property on the Value tab of the button's Properties dialog and set the value that you want that Outlook property to store when the user clicks that button. See http://www.outlookcode.com/d/formcontrols.htm for more info.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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