A
apextos
After using the HideFormPage method to hide a ModifiedPagesForm, if we Show
this form again using ShowForm, controls like ComboBoxes does not have any
more possible values. Either we populate this Combobox from ADO with get
rows or filling them with addItem.
For simplicity reasons try the follwing code and check what are the possible
values at this combobox.
We asume that we have a page with name Page1 and a combobox with name
Combobox1.
==============================================
Function Item_Open()
Dim objPage1, cboField
Set objPage1 = Item.GetInspector.ModifiedFormPages("Page1")
Set cboField = objPage1.Controls("ComboBox1")
Item.GetInspector.ShowFormPage "Page1"
Item.GetInspector.SetCurrentFormPage "Page1"
cboField.AddItem
cboField.AddItem
cboField.Column ( 0, 0 ) = "Central"
cboField.Column ( 0, 1 ) = "Test"
Item.GetInspector.HideFormPage "Page1"
Item.GetInspector.ShowFormPage "Page1"
Item.GetInspector.SetCurrentFormPage "Page1"
End Function
================================
Test it with both Outlook 2000 & 2003
----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
http://www.microsoft.com/communitie...4ee&dg=microsoft.public.outlook.program_forms
this form again using ShowForm, controls like ComboBoxes does not have any
more possible values. Either we populate this Combobox from ADO with get
rows or filling them with addItem.
For simplicity reasons try the follwing code and check what are the possible
values at this combobox.
We asume that we have a page with name Page1 and a combobox with name
Combobox1.
==============================================
Function Item_Open()
Dim objPage1, cboField
Set objPage1 = Item.GetInspector.ModifiedFormPages("Page1")
Set cboField = objPage1.Controls("ComboBox1")
Item.GetInspector.ShowFormPage "Page1"
Item.GetInspector.SetCurrentFormPage "Page1"
cboField.AddItem
cboField.AddItem
cboField.Column ( 0, 0 ) = "Central"
cboField.Column ( 0, 1 ) = "Test"
Item.GetInspector.HideFormPage "Page1"
Item.GetInspector.ShowFormPage "Page1"
Item.GetInspector.SetCurrentFormPage "Page1"
End Function
================================
Test it with both Outlook 2000 & 2003
----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
http://www.microsoft.com/communitie...4ee&dg=microsoft.public.outlook.program_forms