2nd post - launch custom form

N

Newbie

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?
 
J

John Ford

| 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?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top