outlook 2003 forms issue

G

Guest

I have a form with some frames. When I choose a checkbox for a specific
frame to show up, all of them show up for the recipient. My sample code is
listed below:

custompropertyChange.....
select case....

Case "field2"
strMyProp2 = Item.UserProperties("field2")
If strMyProp2 = True Then
Set myinspector = Item.GetInspector
Set myPage1 = myInspector.ModifiedFormPages("P.2")
Set frmCheckData = myPage1.Controls("Frame4")
Set chkNeedCheck = myPage1.Controls("CheckBox35")
frmCheckData.Visible = true

Set myinspector = Item.GetInspector
Set myPage1 = myInspector.ModifiedFormPages("P.2")
Set frmCheckData3 = myPage1.Controls("Frame5")
'frmCheckData2.visible = false
frmCheckData3.visible = false
Set chkNeedCheck3 = myPage1.Controls("CheckBox36")
'chkNeedCheck2.enabled = false
chkNeedCheck3.enabled = false
else
strMyProp2 = false
Set myinspector = Item.GetInspector
Set myPage1 = myInspector.ModifiedFormPages("P.2")
Set frmCheckData = myPage1.Controls("Frame3")
Set chkNeedCheck = myPage1.Controls("CheckBox34")
frmCheckData.Visible = false
end if
End Select
End Sub
 
S

Sue Mosher [MVP-Outlook]

Did you try what I suggested in my response to your other post on this issue?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

Yes, I do have the Item_open to initialize the frames. But outside of that
function I have the customPropertyChange function.
 
G

Guest

Actually, its much simpler than what I had sent before. Basically, I have
all my fields bound. If I hide a bound frame with data inputted into it.
Will the "hide" persist to the recipient. Because that is what I need help
with.
 
S

Sue Mosher [MVP-Outlook]

Does the recipient have access to the published form definition? If not, code won't run.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

Will the "hide" persist to the recipient.

No. When the recipient opens the item, it will display with the UI that is on the original form design.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

Yes. Send form definition is enabled.

Sue Mosher said:
Does the recipient have access to the published form definition? If not, code won't run.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

So there is no solution for this type of issue? It seems like something
really simple.
 
S

Sue Mosher [MVP-Outlook]

That's not what I meant. The recipient must have access to the published form definition. Checking the "send form definition with item" box does not do that. In fact, it does just the opposite: It embeds the form definition in the item, so that it is disconnected from the published form and will not run code for the recipient.

If you want code to run, "send form definition with item" must be unchecked and the form must be published to the Organizational Forms library or to each sender and recipient's Personal Forms library.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top