Hello all



I made a task form and place some user defined fields on one page(Edit
Compose page) and then some fields from are copied to the Edit Read page
of same form.



I saved this taskitem to some folder, it is saved well.



But when i open the task from the folder by double clicking on task
in table view i found that the the controls shows the intial values
of fields.



Summary: I want to know how to save the values of user defined fields
when the taskitem is saved to folder.



Thanks



I have used the following code:



Const olFolderTasks=13



Sub CommandButton1_Click

StrMessageClass=Item.MessageClass

dim StrAssignTo

StrAssignTo = "helpdesk3@hub.com"



Set MyApp = CreateObject("Outlook.Application")

Set MyNameSpace = Application.GetNamespace("MAPI")





Set MyTaskFolder = MyNameSpace.GetDefaultFolder(olFolderTasks)







Set MyItem = MyTaskFolder.Items.Add("IPM.Task.tasktry5")





Item.MessageClass = StrMessageClass



MyItem.Recipients.Add StrAssignTo

MyItem.Subject = "You will definitely get"

MyItem.DueDate = Now() + 2

MyItem.Body = "Keep it up"

Item.MessageClass = StrMessageClass



MyItem.Assign

MyItem.Save

MyItem.Send



MsgBox "the task is saved to " & MyTaskFolder

End Sub


--
Posted via http://dbforums.com