A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , , ,

Custom Appointment Form - Setting Duration to 0 Minutes





 
 
Thread Tools Display Modes
  #1  
Old August 17th 07, 03:04 AM posted to microsoft.public.outlook.program_forms
Jason James
external usenet poster
 
Posts: 2
Default Custom Appointment Form - Setting Duration to 0 Minutes

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  
Old August 17th 07, 03:22 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,772
Default Custom Appointment Form - Setting Duration to 0 Minutes

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 12:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Personal Finance - Mortgage - Internet Advertising - MPAA - Unblock Myspace