corupting code

J

Joel Allen

Hi,

I have code that may be corrupting the form. Any ideas of why it would and
how to solve it?

Set ins = Item.GetInspector

Set pgs = ins.ModifiedFormPages

Set pg = pgs("PM")

Set ctls = pg.Controls



I think it might be the GetInspector code. Is there an alternative to this
code. All I am doing is making controls visible if certain things are
checked in the form. Maybe I can do this within the form instead of in the
code?


Thanks, Joel
 
S

sonomaenterprises

Not sure if it makes a difference but I would set an object to the page and
then use that to access the objects.

Set oPage = Item.GetInspector.ModifiedFormPages("PM")

The operate on the controls
oPage.controls("CtlName").attribute = value

Jack
 
S

Sue Mosher [MVP-Outlook]

What symptoms indicate that the form is being corrupted? What version of Outlook?
--
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