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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2k3 Script: Pb saving data in custom item



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 8th 06, 10:55 AM posted to microsoft.public.outlook.program_vba
news.microsoft.com
external usenet poster
 
Posts: 65
Default Outlook 2k3 Script: Pb saving data in custom item

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  
Old November 8th 06, 02:49 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook 2k3 Script: Pb saving data in custom item

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
Search this Thread:

Advanced Search
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
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


All times are GMT +1. The time now is 07:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.