![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#11
|
|||
|
|||
![]()
If i design a form and then goto "form" and "run this form" it does run
script doesnt it??? Yes, all the code will run when you're testing like that. This looks like the likely source of the problem -- a typo in the name of the event handler (Change, not Chnage) Sub Item_CustomPropertyChnage(ByVal Name) -- 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 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. "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 |
Display Modes | |
|
|
![]() |
||||
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 |