![]() |
| If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|||||||
| Tags: appointment, custom, duration, form, minutes, setting |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I am playing around with forms. I would like to create a custom form that
has a default duration of 0 minutes. However, when I add the field to the form, it is locked and cannot be modified. I have successfully added a Show Time field, and the Outlook Date and Time controls, but the duration is holding me up. What am I doing wrong (other than the fact that I am not a programmer and am just dragging and dropping stuff onto a screen)? In addition, how do I get my custom forms to appear in the default list of forms to choose from when selecting "New"? |
| Ads |
|
#2
|
|||
|
|||
|
Although AppointmentItem.Duration is a read/write field the Duration field
you can add to a form is a calculated field based on End - Start. You can use code in the Item_Open event to test for a new item (EntryID = "") and if it's a new item use the code to set Duration to 0. The code in the Object Browser Help for Duration shows how to set that property, you first set Start and then set Duration, which ends up also setting End. You can also make a form look that way by setting Start and End to the same date/time, but of course that would be fixed values so not very flexible. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Jason James" wrote in message ... I am playing around with forms. I would like to create a custom form that has a default duration of 0 minutes. However, when I add the field to the form, it is locked and cannot be modified. I have successfully added a Show Time field, and the Outlook Date and Time controls, but the duration is holding me up. What am I doing wrong (other than the fact that I am not a programmer and am just dragging and dropping stuff onto a screen)? In addition, how do I get my custom forms to appear in the default list of forms to choose from when selecting "New"? |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I change the default meeting duration to 50 minutes? | circusboy | Outlook - Calandaring | 1 | March 8th 07 01:52 AM |
| How do I set new appointment duration default to 50 minutes? | tnate1234 | Outlook - Calandaring | 2 | March 6th 07 10:25 AM |
| Setting a custom default form | Denis Fondras | Outlook - Using Forms | 8 | September 1st 06 10:31 PM |
| Setting a custom default form | Nozmo | Outlook - Using Contacts | 1 | August 15th 06 07:03 PM |
| Setting Custom Form as Default | Amber | Outlook - Using Forms | 3 | January 27th 06 11:29 PM |