More Outlook Resource Sites

Microsoft Developer Network (MSDN)

FAQs and other general resources

Login

login
password
Remember me

You will need to register and log in if you want to download the source code for the Microsoft Outlook Programming book. The forums and code sharing areas are open to both registered and non-registered visitors.

forum 06-Sep-2010 21:10

Looking for help with Outlook programming projects — VSTO, add-ins, VBA, custom Outlook forms, etc.? You′ve come to the right place!

NEW! >> Subscribe to this site via RSS. For more RSS options, see the complete list of feeds on our main news page.

 

    Page [ 1 ]  
 Outlook Form Design Printer Friendly Version
Designing custom Outlook forms and form regions and writing code for them
Topic
Approval Form - Restricting Action by User
We need to create a form to facilitate the request processing. The key is that we need to accomplish two goals:

A) The requested action will be retricted to a set of items in a drop down list. The set will never be static. On the other hand it will not "change on the fly." So on Monday, the list may be "A", "B" and "C". On Tuesday the list may be "A", "B".

B) We need multiple check boxes on the form. Only certain users should be able to check or un-check the check box. At a high level the flow will be:

Get User ID
If User ID is in the authorized list then
Check box state can be changed
Else
Check box state cannot be changed.

Are these two tasks possible?

  30-Jul-2010  10:01
  30-Jul-2010  12:35   
A) As long as you have some logic that defines which list of items is supposed to be displayed when the user opens the form, this is possible. See http://www.outlookcode.com/article.aspx?ID=32 for information on loading rowas into list and combo boxes.

B) Put code in the Item_Open event handler to enable/disable controls as desired. See http://www.outlookcode.com/article.aspx?ID=38 for information on control syntax.
    Page [ 1 ]  
Post a new message to this topic.



name        email