What do you actually see on the new task? Where is your form published? To work in this scenario, it needs to be published either to Organizational Forms, to Personal Forms, or to the forms library on each folder where items are stored. Also, you may need to create the custom fields in the target folder, if you want them to be displayed there in folder views.
Note that you are moving an item, not a form. A form is the code/UI template. It is the item that contains the data that the form displays.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"koops2121" u37561@uwe wrote in message news:78760171b4d50@uwe...
I have a task form that I move from folder to folder in Outlook public
folders.
Basically when you save and close it should move to the folder above it.
This worked fine before with Outlook 2000/2003. Using the code:
Sub Item_Close
oTask.Move oFolder
End Sub
Now in 2007 it doesn't do anything.
I've also tried changing it so that it copies the form, then moves the copy:
Sub Item_Close
Set ocTask = oTask.Copy
ocTask.Move oFolder
End Sub
This creates the new task, however none of the custom fields come over with
it for whatever reason.
Does anyone have any suggestions?
Thanks,