Question : Open Outlook Form from Access

I created a form in Outlook in a Public Outlook Folder and I am trying to Open it from AXP. I am able to open a regular e-mail in a Public Folder via a hyperlink, but I have no idea how to get to a Form since it is not even displayed in the folder -its just published there.
Basically I created a Form and saved it in an Oulook Public Folder. You will not see the from by going directly into the folder, but if you click FILE>NEW>Choose Form and then choose the from the "Look in" drop-down, there is the form! I am trying to created a button in access that directly opens that form without going through all those steps. I was able to created a shortcut on my desktop that does it by typing "C:\Program Files\Microsoft Office\..Outlook.txt" /c formname in the shortcut target, but don't know how to do something similar in Access. HELP!

Answer : Open Outlook Form from Access

You can open a custom Outlook form from a saved template, as in the code below:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
Public Sub OpenCustomForm()
 
   Dim itm As Outlook.ContactItem
   Dim strForm As String
   
   strForm = "G:\Templates\Guest Contact.oft"
   Set itm = Application.CreateItemFromTemplate(strForm)
   itm.Display
   
End Sub
Random Solutions  
 
programming4us programming4us