A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Custom Task Form



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 17th 08, 06:32 PM posted to microsoft.public.outlook.program_vba
SrYap
external usenet poster
 
Posts: 3
Default Custom Task Form

Created a new Task form. Published it in Task folder. How do I use this new
task form in MS-Access?
Ads
  #2  
Old September 17th 08, 07:56 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Custom Task Form

You don't.

Custom Outlook forms are used in Outlook, not Access.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"SrYap" wrote in message
...
Created a new Task form. Published it in Task folder. How do I use this
new
task form in MS-Access?


  #3  
Old September 17th 08, 08:03 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Custom Task Form

You need to specify the class name of the custom form with the
MAPIFolder.Items.Add method for the folder where you want to create it:

Sub AddForm()
Dim myOlApp As New outlook.Application
Dim myNamespace As outlook.NameSpace
Dim myItems As outlook.Items
Dim myFolder As outlook.MAPIFolder
Dim myItem As outlook.TaskItem
Set myNamespace = myOlApp.GetNamespace("MAPI")
Set myFolder = _
myNamespace.GetDefaultFolder(olFolderTasks)
Set myItems = myFolder.Items
Set myItem = myItems.Add("IPM.Task.myTask")
End Sub


--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
President
Collaborative Innovations
- Try Picture Attachments Wizard 2.0 For Microsoft Outlook -
- Take your SharePoint content offline -
- More info: http://www.collaborativeinnovations.ca -
Blog: http://blogs.officezealot.com/legault


"SrYap" wrote in message
...
Created a new Task form. Published it in Task folder. How do I use this
new
task form in MS-Access?


  #4  
Old September 17th 08, 08:14 PM posted to microsoft.public.outlook.program_vba
SrYap
external usenet poster
 
Posts: 3
Default Custom Task Form

Is this code to create a new form using MS-Access or to access the new form
created in Outlook? If it is to access the new form, do I use the same way to
assign the task, due date, .... as if it is the default Task form from
Outlook?

Thanks.

"Eric Legault [MVP - Outlook]" wrote:

You need to specify the class name of the custom form with the
MAPIFolder.Items.Add method for the folder where you want to create it:

Sub AddForm()
Dim myOlApp As New outlook.Application
Dim myNamespace As outlook.NameSpace
Dim myItems As outlook.Items
Dim myFolder As outlook.MAPIFolder
Dim myItem As outlook.TaskItem
Set myNamespace = myOlApp.GetNamespace("MAPI")
Set myFolder = _
myNamespace.GetDefaultFolder(olFolderTasks)
Set myItems = myFolder.Items
Set myItem = myItems.Add("IPM.Task.myTask")
End Sub


--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
President
Collaborative Innovations
- Try Picture Attachments Wizard 2.0 For Microsoft Outlook -
- Take your SharePoint content offline -
- More info: http://www.collaborativeinnovations.ca -
Blog: http://blogs.officezealot.com/legault


"SrYap" wrote in message
...
Created a new Task form. Published it in Task folder. How do I use this
new
task form in MS-Access?


  #5  
Old September 18th 08, 12:33 AM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Custom Task Form

This is Outlook code, so it's going to create an Outlook Task form, not an
Access form.

Even customized Task forms use the same properties and methods as the
TaskItem object. So yes - assign it and set dates as you normally would,
either in code or in the form.

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
President
Collaborative Innovations
- Try Picture Attachments Wizard 2.0 For Microsoft Outlook -
- Take your SharePoint content offline -
- More info: http://www.collaborativeinnovations.ca -
Blog: http://blogs.officezealot.com/legault


"SrYap" wrote in message
...
Is this code to create a new form using MS-Access or to access the new
form
created in Outlook? If it is to access the new form, do I use the same way
to
assign the task, due date, .... as if it is the default Task form from
Outlook?

Thanks.

"Eric Legault [MVP - Outlook]" wrote:

You need to specify the class name of the custom form with the
MAPIFolder.Items.Add method for the folder where you want to create it:

Sub AddForm()
Dim myOlApp As New outlook.Application
Dim myNamespace As outlook.NameSpace
Dim myItems As outlook.Items
Dim myFolder As outlook.MAPIFolder
Dim myItem As outlook.TaskItem
Set myNamespace = myOlApp.GetNamespace("MAPI")
Set myFolder = _
myNamespace.GetDefaultFolder(olFolderTasks)
Set myItems = myFolder.Items
Set myItem = myItems.Add("IPM.Task.myTask")
End Sub


--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS
2007
& WSS 3.0 Application Development)
President
Collaborative Innovations
- Try Picture Attachments Wizard 2.0 For Microsoft Outlook -
- Take your SharePoint content offline -
- More info: http://www.collaborativeinnovations.ca -
Blog: http://blogs.officezealot.com/legault


"SrYap" wrote in message
...
Created a new Task form. Published it in Task folder. How do I use this
new
task form in MS-Access?


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with a custom task form Sherri Outlook - Using Forms 0 June 27th 08 02:16 PM
Outlook 07 Custom Task Form and SQL Job Outlook - Using Forms 12 September 13th 07 12:06 AM
How to Share Custom Task Form Rob Moore Outlook - Using Forms 2 February 4th 07 01:28 AM
Custom Task Form calvin351 Outlook - Using Forms 3 June 15th 06 02:27 AM
How to use custom task form in Web Outlook DougMunday Outlook - Using Forms 1 April 7th 06 12:18 PM


All times are GMT +1. The time now is 05:06 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.