![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi All,
I've made my own task form and added many personal Item, I set tow of them in read only , to prevent manual modification of these value on the first I put the Number of the task (personal calculated Number) on the second I put other calculated value these values are calculated once by my script only if it is a new Task, when I Open a new task the value are correct, but when I save and reopen a task the value are set to 0 zero When I set the Box to read / Write the correct values are stored I use this to display the value on my Form CustomIdBox is the name of the box CustomId is the field displayed in CustomBox TheVALUE is the calculated value If Item.LastModificationTime = #1/1/4501# Then FormPage.Controls("CustomIdBox").value = TheVALUE CustomId = TheVALUE item.mileage = TheVALUE else FormPage.Controls("CustomIdBox").value = item.mileage 'End If Tks for help |
Ads |
#2
|
|||
|
|||
![]()
Are those controls bound to the UserProperty's you created? If not the code
will have to read the user properties on Item_Open and set the controls then. I'd probably check for Item.EntryID = "" as my new item test. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "news.microsoft.com" wrote in message ... Hi All, I've made my own task form and added many personal Item, I set tow of them in read only , to prevent manual modification of these value on the first I put the Number of the task (personal calculated Number) on the second I put other calculated value these values are calculated once by my script only if it is a new Task, when I Open a new task the value are correct, but when I save and reopen a task the value are set to 0 zero When I set the Box to read / Write the correct values are stored I use this to display the value on my Form CustomIdBox is the name of the box CustomId is the field displayed in CustomBox TheVALUE is the calculated value If Item.LastModificationTime = #1/1/4501# Then FormPage.Controls("CustomIdBox").value = TheVALUE CustomId = TheVALUE item.mileage = TheVALUE else FormPage.Controls("CustomIdBox").value = item.mileage 'End If Tks for help |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook 2k3 script: Open contact window | bbnimda | Outlook and VBA | 3 | November 9th 06 12:37 AM |
Outlook 2k3 Script: Exporting Task item to Excel | news.microsoft.com | Outlook and VBA | 5 | November 8th 06 04:01 PM |
outlook 2k3 Script: how to Save Mail body to txt file | news.microsoft.com | Outlook and VBA | 5 | November 7th 06 02:23 PM |
Outlook 2k3 Script: Pb extracting list of items | news.microsoft.com | Outlook and VBA | 4 | November 7th 06 07:42 AM |
Outlook 2k3 RPC over HTTP Script | vzerbonia | Outlook - Installation | 0 | July 27th 06 07:35 PM |