Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / June 2007

Tip: Looking for answers? Try searching our database.

Repeat form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jan Kuijt - 27 Jun 2007 18:59 GMT
I have designed a form for Order Entry.
One customer can order more items but I want one item per email.
Is there a way to send order1 (item1) and keep the basic information ( name,
address, place, etc.) for order2 in the form for the next item?

Regards,

Jan Kuijt
Sue Mosher [MVP-Outlook] - 27 Jun 2007 21:58 GMT
You could put a command button on your form that creates a new item using the same form and copies data from one item to the other. To create a new instance of a custom form programmatically, use the Add method on the target folder's Items collection:

   Set newItem = targetFolder.Items.Add("IPM.Post.YourFormName")

If it's a message form, use the Drafts folder as the target. If the target is a default folder, you can use the Namespace.GetDefaultFolder method to return it as a MAPIFolder object. To create an item in another person's mailbox, use Namespace.GetSharedDefaultFolder to get the MAPIFolder Otherwise, you can use the code at http://www.outlookcode.com/d/code/getfolder.htm to walk the folder hierarchy and return the MAPIFolder corresponding to a given path string.

See http://www.outlookcode.com/article.aspx?ID=38 if you need help with property syntax.

Signature

Sue Mosher, Outlook MVP
  Author of Microsoft Outlook 2007 Programming:
    Jumpstart for Power Users and Administrators
   http://www.outlookcode.com/article.aspx?id=54

>I have designed a form for Order Entry.
> One customer can order more items but I want one item per email.
[quoted text clipped - 4 lines]
>
> Jan Kuijt
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.