How to know the name of the form user in a folder

  • Thread starter Thread starter bbnimda
  • Start date Start date
B

bbnimda

Config Outlook 2003
SBS 2003

Hi again,

I use a personal form wich allow's me to open or create Task's / Contact in
diff subFolder of my public folders, the Pb is that in many case

there is a customised form in that folder so when I open the item it's
displayed in the default form, I need to display it with the right Foms

Tks
 
N.B:

My problem is to know the messageClass when the folder is empty, when there
at least one item I can have it usin

Set myItem1 = ContactFolder.Items(1)

TheForm = myItem1.MessageClass

tks
 
I don't understand what you are trying to accomplish. Please provide more complete information.
 
In my Personalised Task I can Create contact in different folder by
selection the target folder in a combo

The Pb is these folder have personalised form and if I don't specify the
right messageclass, I create the contact using the builtin form (default)
and I can't fill all needed data (personal added info in the )

It's Clear or I show U the code

nb: excuse my bad english ;)


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de news: (e-mail address removed)...
I don't understand what you are trying to accomplish. Please provide more
complete information.
 
If you want to create an item that uses a particular custom form, then you need to pass the message class for that form in the Items.Add statement that creates the new contact.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


bbnimda said:
In my Personalised Task I can Create contact in different folder by
selection the target folder in a combo

The Pb is these folder have personalised form and if I don't specify the
right messageclass, I create the contact using the builtin form (default)
and I can't fill all needed data (personal added info in the )

It's Clear or I show U the code

nb: excuse my bad english ;)


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de news: (e-mail address removed)...
I don't understand what you are trying to accomplish. Please provide more
complete information.

bbnimda said:
N.B:

My problem is to know the messageClass when the folder is empty, when
there
at least one item I can have it usin

Set myItem1 = ContactFolder.Items(1)

TheForm = myItem1.MessageClass
 
How can I do that without knowing the name of the messageclass ?


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de news: (e-mail address removed)...
If you want to create an item that uses a particular custom form, then you
need to pass the message class for that form in the Items.Add statement that
creates the new contact.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


bbnimda said:
In my Personalised Task I can Create contact in different folder by
selection the target folder in a combo

The Pb is these folder have personalised form and if I don't specify the
right messageclass, I create the contact using the builtin form (default)
and I can't fill all needed data (personal added info in the )

It's Clear or I show U the code

nb: excuse my bad english ;)


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le
message
de news: (e-mail address removed)...
I don't understand what you are trying to accomplish. Please provide more
complete information.

bbnimda said:
N.B:

My problem is to know the messageClass when the folder is empty, when
there
at least one item I can have it usin

Set myItem1 = ContactFolder.Items(1)

TheForm = myItem1.MessageClass
 
Is that what you're trying to do -- find out the name of the default form for a particular folder? If so, in Outlook 2007, use the PropertyAccessor object. In Outlook 2003 or earlier, use CDO 1.21. These samples set the default form for a folder. In your case, you'd do the reverse-- read the property value rather than set it:

http://www.outlookcode.com/codedetail.aspx?id=1594 (PropertyAccessor)
http://www.outlookcode.com/codedetail.aspx?id=1303 (CDO)


--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


bbnimda said:
How can I do that without knowing the name of the messageclass ?


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le message
de news: (e-mail address removed)...
If you want to create an item that uses a particular custom form, then you
need to pass the message class for that form in the Items.Add statement that
creates the new contact.

bbnimda said:
In my Personalised Task I can Create contact in different folder by
selection the target folder in a combo

The Pb is these folder have personalised form and if I don't specify the
right messageclass, I create the contact using the builtin form (default)
and I can't fill all needed data (personal added info in the )

It's Clear or I show U the code

nb: excuse my bad english ;)


"Sue Mosher [MVP-Outlook]" <[email protected]> a écrit dans le
message
de news: (e-mail address removed)...
I don't understand what you are trying to accomplish. Please provide more
complete information.

bbnimda said:
N.B:

My problem is to know the messageClass when the folder is empty, when
there
at least one item I can have it usin

Set myItem1 = ContactFolder.Items(1)

TheForm = myItem1.MessageClass


"bbnimda" <[email protected]> a écrit dans le message de (e-mail address removed)...
Config Outlook 2003
SBS 2003

I use a personal form wich allow's me to open or create Task's / Contact
in diff subFolder of my public folders, the Pb is that in many case

there is a customised form in that folder so when I open the item it's
displayed in the default form, I need to display it with the right Foms
 
Back
Top