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 / August 2003

Tip: Looking for answers? Try searching our database.

2nd post - launch custom form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Newbie - 04 Aug 2003 15:28 GMT
Hi

I want to be able to send an email from Access that uses a custom form
called "HelpDesk" -

I can send an email using the default message form no probs the bit I can't
figure out is how to use the custom form

Can someone help ? is this possible?
John Ford - 04 Aug 2003 17:04 GMT
| Hi
|
[quoted text clipped - 5 lines]
|
| Can someone help ? is this possible?

Here's what I've got in an Outlook VBA macro, to launch an Outlook
Form... hope it helps:

Sub SendForm()
 Dim myOlApp As Application
 Dim myNameSpace As NameSpace
 Dim myFolder As MAPIFolder
 Dim myItems As Items
 Dim myItem As Object
 Set myOlApp = CreateObject("Outlook.Application")
 Set myNameSpace = myOlApp.GetNamespace("MAPI")
 Set myFolder = _
   myNameSpace.GetDefaultFolder(olFolderInbox)
 Set myItems = myFolder.Items
 Set myItem = myItems.Add("IPM.Note.<yourformnamehere>")
 myItem.Display
 Set myOlApp = Nothing
 Set myNameSpace = Nothing
 Set myFolder = Nothing
 Set myItems = Nothing
 Set myItem = Nothing
End Sub

--
jcf
 
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.