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

Forms



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 17th 06, 12:07 AM posted to microsoft.public.outlook.program_vba
Ceige
external usenet poster
 
Posts: 8
Default Forms

Ok heres the deal

I am trying to create a form in outlook, now that in its self is not to hard
but i am not a programmer and i wanted to get a bit flash, here is what i
want to do

i have four tabs in my form named (for the sake of this post):
Main - 1 - 2 - 3

Now i want a combo box on the "main" tab with 1,2 and 3 as options

Ok thats not a problem. Now here is what i want.
If the combo box is set to 1 for example i want "2" and "3" to either be
invisible or be disabled. so if the person then changed the combo box to "3"
then 1 and 2 would be invissable or disabled.

Im sure it can be done with some sort of code to check what value is in
combo box and if it matches certain criteria to either change the enabled
states of the other pages or to change that value HideSomethingSomething in
vb.

i know there is someone who can help me but please try to keep it simple as
i really dont have a clue about VB (ok i can sort of get the idea but dont
have a clue about terminology)

Any help would be great and make me look so clever at work

Ads
  #2  
Old April 19th 06, 10:21 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Forms

You can't hide tabs in a custom form except in design mode. The best you can
do is disable them in code, but they'll still be visible but not "clickable".

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Ceige" wrote:

Ok heres the deal

I am trying to create a form in outlook, now that in its self is not to hard
but i am not a programmer and i wanted to get a bit flash, here is what i
want to do

i have four tabs in my form named (for the sake of this post):
Main - 1 - 2 - 3

Now i want a combo box on the "main" tab with 1,2 and 3 as options

Ok thats not a problem. Now here is what i want.
If the combo box is set to 1 for example i want "2" and "3" to either be
invisible or be disabled. so if the person then changed the combo box to "3"
then 1 and 2 would be invissable or disabled.

Im sure it can be done with some sort of code to check what value is in
combo box and if it matches certain criteria to either change the enabled
states of the other pages or to change that value HideSomethingSomething in
vb.

i know there is someone who can help me but please try to keep it simple as
i really dont have a clue about VB (ok i can sort of get the idea but dont
have a clue about terminology)

Any help would be great and make me look so clever at work

  #3  
Old April 19th 06, 11:14 PM posted to microsoft.public.outlook.program_vba
Ceige
external usenet poster
 
Posts: 8
Default Forms

Thank you Eric i thought i was at a loss with this one

Ok my next question is "yep you guessed it" how to disable the forms using
the combo box

Just remeber a coding virgin here

Hehe
Anyway thanks peeps

"Eric Legault [MVP - Outlook]" wrote:

You can't hide tabs in a custom form except in design mode. The best you can
do is disable them in code, but they'll still be visible but not "clickable".

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Ceige" wrote:

Ok heres the deal

I am trying to create a form in outlook, now that in its self is not to hard
but i am not a programmer and i wanted to get a bit flash, here is what i
want to do

i have four tabs in my form named (for the sake of this post):
Main - 1 - 2 - 3

Now i want a combo box on the "main" tab with 1,2 and 3 as options

Ok thats not a problem. Now here is what i want.
If the combo box is set to 1 for example i want "2" and "3" to either be
invisible or be disabled. so if the person then changed the combo box to "3"
then 1 and 2 would be invissable or disabled.

Im sure it can be done with some sort of code to check what value is in
combo box and if it matches certain criteria to either change the enabled
states of the other pages or to change that value HideSomethingSomething in
vb.

i know there is someone who can help me but please try to keep it simple as
i really dont have a clue about VB (ok i can sort of get the idea but dont
have a clue about terminology)

Any help would be great and make me look so clever at work

  #4  
Old April 20th 06, 01:53 AM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Forms

Assuming you want the selected number to indicate which page you want
disabled, the code would work like this if you created a field called
MyComboBoxField and bound it to a combo box:

Sub Item_CustomPropertyChange(ByVal Name)
If Name = "MyComboBoxField" Then
Select Case Item.UserProperties("MyComboBoxField").Value
Case 1
Item.GetInspector.ModifiedFormPages("1").Enabled = False
Item.GetInspector.ModifiedFormPages("2").Enabled = True
Item.GetInspector.ModifiedFormPages("3").Enabled = True
Case 2
Item.GetInspector.ModifiedFormPages("1").Enabled = True
Item.GetInspector.ModifiedFormPages("2").Enabled = False
Item.GetInspector.ModifiedFormPages("3").Enabled = True
Case 3
Item.GetInspector.ModifiedFormPages("1").Enabled = True
Item.GetInspector.ModifiedFormPages("2").Enabled = True
Item.GetInspector.ModifiedFormPages("3").Enabled = False
End Select
End If
End Sub

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Ceige" wrote:

Thank you Eric i thought i was at a loss with this one

Ok my next question is "yep you guessed it" how to disable the forms using
the combo box

Just remeber a coding virgin here

Hehe
Anyway thanks peeps

"Eric Legault [MVP - Outlook]" wrote:

You can't hide tabs in a custom form except in design mode. The best you can
do is disable them in code, but they'll still be visible but not "clickable".

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Ceige" wrote:

Ok heres the deal

I am trying to create a form in outlook, now that in its self is not to hard
but i am not a programmer and i wanted to get a bit flash, here is what i
want to do

i have four tabs in my form named (for the sake of this post):
Main - 1 - 2 - 3

Now i want a combo box on the "main" tab with 1,2 and 3 as options

Ok thats not a problem. Now here is what i want.
If the combo box is set to 1 for example i want "2" and "3" to either be
invisible or be disabled. so if the person then changed the combo box to "3"
then 1 and 2 would be invissable or disabled.

Im sure it can be done with some sort of code to check what value is in
combo box and if it matches certain criteria to either change the enabled
states of the other pages or to change that value HideSomethingSomething in
vb.

i know there is someone who can help me but please try to keep it simple as
i really dont have a clue about VB (ok i can sort of get the idea but dont
have a clue about terminology)

Any help would be great and make me look so clever at work

  #5  
Old April 20th 06, 04:23 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Forms

There's an easier way -- ShowFormPage /HideFormPage, as in:

Item.GetInspector.HideFormPage "1"

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Eric Legault [MVP - Outlook]" wrote in message ...
Assuming you want the selected number to indicate which page you want
disabled, the code would work like this if you created a field called
MyComboBoxField and bound it to a combo box:

Sub Item_CustomPropertyChange(ByVal Name)
If Name = "MyComboBoxField" Then
Select Case Item.UserProperties("MyComboBoxField").Value
Case 1
Item.GetInspector.ModifiedFormPages("1").Enabled = False
Item.GetInspector.ModifiedFormPages("2").Enabled = True
Item.GetInspector.ModifiedFormPages("3").Enabled = True
Case 2
Item.GetInspector.ModifiedFormPages("1").Enabled = True
Item.GetInspector.ModifiedFormPages("2").Enabled = False
Item.GetInspector.ModifiedFormPages("3").Enabled = True
Case 3
Item.GetInspector.ModifiedFormPages("1").Enabled = True
Item.GetInspector.ModifiedFormPages("2").Enabled = True
Item.GetInspector.ModifiedFormPages("3").Enabled = False
End Select
End If
End Sub

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Ceige" wrote:

Thank you Eric i thought i was at a loss with this one

Ok my next question is "yep you guessed it" how to disable the forms using
the combo box

Just remeber a coding virgin here

Hehe
Anyway thanks peeps

"Eric Legault [MVP - Outlook]" wrote:

You can't hide tabs in a custom form except in design mode. The best you can
do is disable them in code, but they'll still be visible but not "clickable".

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Ceige" wrote:

Ok heres the deal

I am trying to create a form in outlook, now that in its self is not to hard
but i am not a programmer and i wanted to get a bit flash, here is what i
want to do

i have four tabs in my form named (for the sake of this post):
Main - 1 - 2 - 3

Now i want a combo box on the "main" tab with 1,2 and 3 as options

Ok thats not a problem. Now here is what i want.
If the combo box is set to 1 for example i want "2" and "3" to either be
invisible or be disabled. so if the person then changed the combo box to "3"
then 1 and 2 would be invissable or disabled.

Im sure it can be done with some sort of code to check what value is in
combo box and if it matches certain criteria to either change the enabled
states of the other pages or to change that value HideSomethingSomething in
vb.

i know there is someone who can help me but please try to keep it simple as
i really dont have a clue about VB (ok i can sort of get the idea but dont
have a clue about terminology)

Any help would be great and make me look so clever at work

  #6  
Old April 20th 06, 05:45 AM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Forms

Oh good grief! See Sue, this is what happens when I don't have a forms
project in six months. Something was chattering in the back of my head about
this, because I knew I fought with this before but couldn't recall for what.
Thanks for the heads up!

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Sue Mosher [MVP-Outlook]" wrote:

There's an easier way -- ShowFormPage /HideFormPage, as in:

Item.GetInspector.HideFormPage "1"

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Eric Legault [MVP - Outlook]" wrote in message ...
Assuming you want the selected number to indicate which page you want
disabled, the code would work like this if you created a field called
MyComboBoxField and bound it to a combo box:

Sub Item_CustomPropertyChange(ByVal Name)
If Name = "MyComboBoxField" Then
Select Case Item.UserProperties("MyComboBoxField").Value
Case 1
Item.GetInspector.ModifiedFormPages("1").Enabled = False
Item.GetInspector.ModifiedFormPages("2").Enabled = True
Item.GetInspector.ModifiedFormPages("3").Enabled = True
Case 2
Item.GetInspector.ModifiedFormPages("1").Enabled = True
Item.GetInspector.ModifiedFormPages("2").Enabled = False
Item.GetInspector.ModifiedFormPages("3").Enabled = True
Case 3
Item.GetInspector.ModifiedFormPages("1").Enabled = True
Item.GetInspector.ModifiedFormPages("2").Enabled = True
Item.GetInspector.ModifiedFormPages("3").Enabled = False
End Select
End If
End Sub

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Ceige" wrote:

Thank you Eric i thought i was at a loss with this one

Ok my next question is "yep you guessed it" how to disable the forms using
the combo box

Just remeber a coding virgin here

Hehe
Anyway thanks peeps

"Eric Legault [MVP - Outlook]" wrote:

You can't hide tabs in a custom form except in design mode. The best you can
do is disable them in code, but they'll still be visible but not "clickable".

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Ceige" wrote:

Ok heres the deal

I am trying to create a form in outlook, now that in its self is not to hard
but i am not a programmer and i wanted to get a bit flash, here is what i
want to do

i have four tabs in my form named (for the sake of this post):
Main - 1 - 2 - 3

Now i want a combo box on the "main" tab with 1,2 and 3 as options

Ok thats not a problem. Now here is what i want.
If the combo box is set to 1 for example i want "2" and "3" to either be
invisible or be disabled. so if the person then changed the combo box to "3"
then 1 and 2 would be invissable or disabled.

Im sure it can be done with some sort of code to check what value is in
combo box and if it matches certain criteria to either change the enabled
states of the other pages or to change that value HideSomethingSomething in
vb.

i know there is someone who can help me but please try to keep it simple as
i really dont have a clue about VB (ok i can sort of get the idea but dont
have a clue about terminology)

Any help would be great and make me look so clever at work


  #7  
Old April 20th 06, 08:39 AM posted to microsoft.public.outlook.program_vba
Ceige
external usenet poster
 
Posts: 8
Default Forms

Thank you so so so much Eric and Sue, you have brightened up my morning

"Eric Legault [MVP - Outlook]" wrote:

Oh good grief! See Sue, this is what happens when I don't have a forms
project in six months. Something was chattering in the back of my head about
this, because I knew I fought with this before but couldn't recall for what.
Thanks for the heads up!

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Sue Mosher [MVP-Outlook]" wrote:

There's an easier way -- ShowFormPage /HideFormPage, as in:

Item.GetInspector.HideFormPage "1"

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Eric Legault [MVP - Outlook]" wrote in message ...
Assuming you want the selected number to indicate which page you want
disabled, the code would work like this if you created a field called
MyComboBoxField and bound it to a combo box:

Sub Item_CustomPropertyChange(ByVal Name)
If Name = "MyComboBoxField" Then
Select Case Item.UserProperties("MyComboBoxField").Value
Case 1
Item.GetInspector.ModifiedFormPages("1").Enabled = False
Item.GetInspector.ModifiedFormPages("2").Enabled = True
Item.GetInspector.ModifiedFormPages("3").Enabled = True
Case 2
Item.GetInspector.ModifiedFormPages("1").Enabled = True
Item.GetInspector.ModifiedFormPages("2").Enabled = False
Item.GetInspector.ModifiedFormPages("3").Enabled = True
Case 3
Item.GetInspector.ModifiedFormPages("1").Enabled = True
Item.GetInspector.ModifiedFormPages("2").Enabled = True
Item.GetInspector.ModifiedFormPages("3").Enabled = False
End Select
End If
End Sub

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Ceige" wrote:

Thank you Eric i thought i was at a loss with this one

Ok my next question is "yep you guessed it" how to disable the forms using
the combo box

Just remeber a coding virgin here

Hehe
Anyway thanks peeps

"Eric Legault [MVP - Outlook]" wrote:

You can't hide tabs in a custom form except in design mode. The best you can
do is disable them in code, but they'll still be visible but not "clickable".

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Ceige" wrote:

Ok heres the deal

I am trying to create a form in outlook, now that in its self is not to hard
but i am not a programmer and i wanted to get a bit flash, here is what i
want to do

i have four tabs in my form named (for the sake of this post):
Main - 1 - 2 - 3

Now i want a combo box on the "main" tab with 1,2 and 3 as options

Ok thats not a problem. Now here is what i want.
If the combo box is set to 1 for example i want "2" and "3" to either be
invisible or be disabled. so if the person then changed the combo box to "3"
then 1 and 2 would be invissable or disabled.

Im sure it can be done with some sort of code to check what value is in
combo box and if it matches certain criteria to either change the enabled
states of the other pages or to change that value HideSomethingSomething in
vb.

i know there is someone who can help me but please try to keep it simple as
i really dont have a clue about VB (ok i can sort of get the idea but dont
have a clue about terminology)

Any help would be great and make me look so clever at work


  #8  
Old April 20th 06, 01:19 PM posted to microsoft.public.outlook.program_vba
Ceige
external usenet poster
 
Posts: 8
Default Forms

ok im back AGAIN hehe

Right i am going wrong somewhere

I have Four pages in my form labelled "Main" - "1" - "2" - "3"
On "Main" is A Combobox with a field called "Local" and then Values of 1,2,3
In the other pages is just text boxes for now.

In my script is the following thanks to your help so far

Sub Item_CustomPropertyChnage(ByVal Name)
If Name = "Local" Then
Select Case Item.UserProperties("Local").Value
Case 1
Item.GetInspector.ShowFormPage("1")
Item.GetInspector.HideFormPage("2")
Item.GetInspector.HideFormPage("3")
Case 2
Item.GetInspector.HideFormPage("1")
Item.GetInspector.ShowFormPage("2")
Item.GetInspector.HideFormPage("3")
Case 3
Item.GetInspector.HideFormPage("1")
Item.GetInspector.HideFormPage("2")
Item.GetInspector.ShowFormPage("3")
End Select
End If
End Sub

Now is there something totally wrong or should this work.

When i run the form i can see all pages and edit each one

"Ceige" wrote:

Thank you so so so much Eric and Sue, you have brightened up my morning

"Eric Legault [MVP - Outlook]" wrote:

Oh good grief! See Sue, this is what happens when I don't have a forms
project in six months. Something was chattering in the back of my head about
this, because I knew I fought with this before but couldn't recall for what.
Thanks for the heads up!

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Sue Mosher [MVP-Outlook]" wrote:

There's an easier way -- ShowFormPage /HideFormPage, as in:

Item.GetInspector.HideFormPage "1"

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Eric Legault [MVP - Outlook]" wrote in message ...
Assuming you want the selected number to indicate which page you want
disabled, the code would work like this if you created a field called
MyComboBoxField and bound it to a combo box:

Sub Item_CustomPropertyChange(ByVal Name)
If Name = "MyComboBoxField" Then
Select Case Item.UserProperties("MyComboBoxField").Value
Case 1
Item.GetInspector.ModifiedFormPages("1").Enabled = False
Item.GetInspector.ModifiedFormPages("2").Enabled = True
Item.GetInspector.ModifiedFormPages("3").Enabled = True
Case 2
Item.GetInspector.ModifiedFormPages("1").Enabled = True
Item.GetInspector.ModifiedFormPages("2").Enabled = False
Item.GetInspector.ModifiedFormPages("3").Enabled = True
Case 3
Item.GetInspector.ModifiedFormPages("1").Enabled = True
Item.GetInspector.ModifiedFormPages("2").Enabled = True
Item.GetInspector.ModifiedFormPages("3").Enabled = False
End Select
End If
End Sub

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Ceige" wrote:

Thank you Eric i thought i was at a loss with this one

Ok my next question is "yep you guessed it" how to disable the forms using
the combo box

Just remeber a coding virgin here

Hehe
Anyway thanks peeps

"Eric Legault [MVP - Outlook]" wrote:

You can't hide tabs in a custom form except in design mode. The best you can
do is disable them in code, but they'll still be visible but not "clickable".

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Ceige" wrote:

Ok heres the deal

I am trying to create a form in outlook, now that in its self is not to hard
but i am not a programmer and i wanted to get a bit flash, here is what i
want to do

i have four tabs in my form named (for the sake of this post):
Main - 1 - 2 - 3

Now i want a combo box on the "main" tab with 1,2 and 3 as options

Ok thats not a problem. Now here is what i want.
If the combo box is set to 1 for example i want "2" and "3" to either be
invisible or be disabled. so if the person then changed the combo box to "3"
then 1 and 2 would be invissable or disabled.

Im sure it can be done with some sort of code to check what value is in
combo box and if it matches certain criteria to either change the enabled
states of the other pages or to change that value HideSomethingSomething in
vb.

i know there is someone who can help me but please try to keep it simple as
i really dont have a clue about VB (ok i can sort of get the idea but dont
have a clue about terminology)

Any help would be great and make me look so clever at work


  #9  
Old April 20th 06, 01:28 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Forms

If Local is a text property, you need to use string values for your Case statements -- "1" not 1.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Ceige" wrote in message ...
ok im back AGAIN hehe

Right i am going wrong somewhere

I have Four pages in my form labelled "Main" - "1" - "2" - "3"
On "Main" is A Combobox with a field called "Local" and then Values of 1,2,3
In the other pages is just text boxes for now.

In my script is the following thanks to your help so far

Sub Item_CustomPropertyChnage(ByVal Name)
If Name = "Local" Then
Select Case Item.UserProperties("Local").Value
Case 1
Item.GetInspector.ShowFormPage("1")
Item.GetInspector.HideFormPage("2")
Item.GetInspector.HideFormPage("3")
Case 2
Item.GetInspector.HideFormPage("1")
Item.GetInspector.ShowFormPage("2")
Item.GetInspector.HideFormPage("3")
Case 3
Item.GetInspector.HideFormPage("1")
Item.GetInspector.HideFormPage("2")
Item.GetInspector.ShowFormPage("3")
End Select
End If
End Sub

Now is there something totally wrong or should this work.

When i run the form i can see all pages and edit each one


  #10  
Old April 20th 06, 03:55 PM posted to microsoft.public.outlook.program_vba
Ceige
external usenet poster
 
Posts: 8
Default Forms

Ok getting no where here hehe

Right tried adding quotes around the numbers after case and still no effect,
also tried the enabled=true etc eric suggested and nothing.

Here is a few more details.
The Combo box has a name of "ComboBox1"
Under Value it says in the following order:
Choose Field : Local
Type : Text
Format :Text (Grayed out)
List Type : DropDown
Property to use : Value
Possible Values : 1;2;3

There is no initial value and it is not required

If i design a form and then goto "form" and "run this form" it does run
script doesnt it???

Again i cant thank you enough for your time in this matter

"Sue Mosher [MVP-Outlook]" wrote:

If Local is a text property, you need to use string values for your Case statements -- "1" not 1.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Ceige" wrote in message ...
ok im back AGAIN hehe

Right i am going wrong somewhere

I have Four pages in my form labelled "Main" - "1" - "2" - "3"
On "Main" is A Combobox with a field called "Local" and then Values of 1,2,3
In the other pages is just text boxes for now.

In my script is the following thanks to your help so far

Sub Item_CustomPropertyChnage(ByVal Name)
If Name = "Local" Then
Select Case Item.UserProperties("Local").Value
Case 1
Item.GetInspector.ShowFormPage("1")
Item.GetInspector.HideFormPage("2")
Item.GetInspector.HideFormPage("3")
Case 2
Item.GetInspector.HideFormPage("1")
Item.GetInspector.ShowFormPage("2")
Item.GetInspector.HideFormPage("3")
Case 3
Item.GetInspector.HideFormPage("1")
Item.GetInspector.HideFormPage("2")
Item.GetInspector.ShowFormPage("3")
End Select
End If
End Sub

Now is there something totally wrong or should this work.

When i run the form i can see all pages and edit each one



 




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
Hiding Forms Ceige Outlook - Using Forms 2 May 3rd 06 03:21 PM
forms and templates rexmann Outlook - Calandaring 2 March 28th 06 06:04 PM
Convert Forms Jack Outlook - Using Forms 5 March 22nd 06 05:54 AM
Forms SyStym Outlook and VBA 1 February 24th 06 02:32 PM
Forms Mostro Outlook - General Queries 2 January 26th 06 05:34 PM


All times are GMT +1. The time now is 10:18 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.