Checkbox Action


G

Guest

hello!,
I'm designing a type of submittal form so that someone can submit a request
with an attached file for approval from management.
When an approval checkbox on the form is checked by management, I would like
it to reply to sender and to myself so that I can track the approved files
and so that I can place them on the firm's intranet site.
I'm new to writing code in Outlook and I'm not sure how to write the above
action.
Can someone offer some help?
 
Ad

Advertisements

H

Hollis D. Paul

I'm new to writing code in Outlook and I'm not sure how to write the above
action.
Can someone offer some help?
The usual way is to bind the checkbox to a user-defined-field, and put code
in the UserProperties event to detect when it changes.

Go to www.outlook-code.com for samples. Also, search in www.slipstick.com
for information.

Here is stuff from a page in outlook-code.com:
http://www.outlook-code.com/d/formcontrols.htm#options

*******************
Also known as radio buttons, option buttons are a good choice if you need the
user to pick from a small number of mutually exclusive choices.
On the Value tab of each button's Properties dialog, bind each button in a
set to the same Outlook property and set a unique value for each button.

To work with your option buttons in code, you can use a Select Case
statement:

Select Case Item.UserProperties("Radio Button")
Case "Red" ' value of first button
' do something
Case "Green" ' value of second button
' do something else
Case "Blue" ' value of third button
' and now for something completely different
End Select


The above example assumes that you assigned a string representing a color to
each buttons.

************************
(More details on the actual page.)

The check box will work just like a radio button, except the value is True or
False.


Hollis D. Paul [MVP - Outlook]
(e-mail address removed)
Mukilteo, WA USA
 

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

Similar Threads

No "Reply action" on Actions tab 1
Custom Action 3
an action in a commandButton 5
custom action 1
Control Checkbox 0
if checkbox is checked then... 3
Checkbox Validation 0
Using checkboxes 1

Top