User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 391,952 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,836 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser:
Views: 3533 | Replies: 3
Reply
Join Date: Nov 2005
Posts: 3
Reputation: hopkins1878 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
hopkins1878 hopkins1878 is offline Offline
Newbie Poster

Opening Outlook Template

  #1  
Nov 15th, 2005
Hi there,

I am not the bet in Access, I will admit. But need a function to open up a MS Outlook template (.oft file) within Access. Anyone help with quick steps on how to do this, It would be greatly apprciated.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2005
Location: Charlotte,NC
Posts: 85
Reputation: Kegtapper is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 2
Kegtapper's Avatar
Kegtapper Kegtapper is offline Offline
Junior Poster in Training

Re: Opening Outlook Template

  #2  
Dec 8th, 2005
You can't.
If you are trying to use Access as a datasource for Outlook you can, but there are limitations. You would have to use Outlook VBA Design controls.
Reply With Quote  
Join Date: Oct 2005
Location: Charlotte,NC
Posts: 85
Reputation: Kegtapper is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 2
Kegtapper's Avatar
Kegtapper Kegtapper is offline Offline
Junior Poster in Training

Re: Opening Outlook Template

  #3  
Dec 8th, 2005
Sounds like you are trying to use an ACCESS form to generate OL2000 appointments/etc.

If that is the case you may want to design a form in OUTLOOK modifying an existing template, and pull the data from Access. Then it becomes an Outlook VBA application using automation, events and rules
Reply With Quote  
Join Date: Oct 2005
Location: Charlotte,NC
Posts: 85
Reputation: Kegtapper is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 2
Kegtapper's Avatar
Kegtapper Kegtapper is offline Offline
Junior Poster in Training

Solution Re: Opening Outlook Template

  #4  
Dec 9th, 2005
Originally Posted by hopkins1878
Hi there,

I am not the best in Access, I will admit. But need a function to open up a MS Outlook template (.oft file) within Access. Anyone help with quick steps on how to do this, It would be greatly apprciated.

To answer EXACTLY what you asked - here it is
'---------------------------------------------------
Private Sub Command1_Click()
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItemFromTemplate("C:\Program Files\Microsoft Office\Templates\APPT2.oft")
myItem.Display
End Sub
'--------------------------------------------------
1: Create a Command1 button on ACCESS Form
2: Place Code in EVENT HANDLE

This Code does this
a: Create an OUTLOOK Object
b: Create an Object Item from Template (your existing template in the directory you saved it to.)
c: Displays your item

APPT2 is the name of the custom template, change it to what yours is named


--------Thread End ----------
aka Kegtapper
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 9:05 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC