Hi, I am trying to pass the "sent" value from one form to a user-defined field in a 2nd form. The value that I get in the 2nd form is
Fri 12/29/1899 12:00 AM
This is not correct. Any ideas why this value, and not the correct value is being passed? Code snipit below:
Sub cmdconfirm_click
Set MyNameSpace = Application.GetNameSpace("MAPI"
Set PublicFolders = MyNameSpace.Folders("Public Folders"
Set AllPublicFolders = PublicFolders.Folders("All Public Folders"
Set MyFolder = AllPublicFolders.Folders("Product Recalls"
Set MyItem = MyFolder.Items.Add("IPM.Post.Confirmed"
MyItem.Subject = "After Hours Product Advisory Confirmation"
MyItem.UserProperties.Find("OrigSentTime".Value = Item.Sent
MyItem.Post
Item.Close 1
End Sub
Fri 12/29/1899 12:00 AM
This is not correct. Any ideas why this value, and not the correct value is being passed? Code snipit below:
Sub cmdconfirm_click
Set MyNameSpace = Application.GetNameSpace("MAPI"
Set PublicFolders = MyNameSpace.Folders("Public Folders"
Set AllPublicFolders = PublicFolders.Folders("All Public Folders"
Set MyFolder = AllPublicFolders.Folders("Product Recalls"
Set MyItem = MyFolder.Items.Add("IPM.Post.Confirmed"
MyItem.Subject = "After Hours Product Advisory Confirmation"
MyItem.UserProperties.Find("OrigSentTime".Value = Item.Sent
MyItem.Post
Item.Close 1
End Sub