PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Form Programming Please help with Function Item_Open()

Reply

Please help with Function Item_Open()

 
Thread Tools Rate Thread
Old 29-04-2004, 06:47 AM   #1
Joel
Guest
 
Posts: n/a
Default Please help with Function Item_Open()


Public Task Folder:

My form runs fine until I add this into my script:

Function Item_Open()
If Item.UserProperties("TaxExempt") = True Then
Set ins = Item.GetInspector
Set pgs = ins.ModifiedFormPages
Set pg = pgs("PM")
Set ctls = pg.Controls
ctls("combobox34").Enabled = False
else
Set ins = Item.GetInspector
Set pgs = ins.ModifiedFormPages
Set pg = pgs("PM")
Set ctls = pg.Controls
ctls("combobox34").Enabled = True
End If
End Function

When another user on exchange opens a Task, they get an error saying cannot
open the form, will use the default form instead.

Any ideas?

Thanks - Joel


  Reply With Quote
Old 04-05-2004, 04:51 AM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: Please help with Function Item_Open()

Outlook version? Where is the form published? Have you tried having the
other user clear their forms cache?

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


"Joel" <joelallen123@hotmail.com> wrote in message
news:O3jZC2aLEHA.1388@TK2MSFTNGP09.phx.gbl...
> Public Task Folder:
>
> My form runs fine until I add this into my script:
>
> Function Item_Open()
> If Item.UserProperties("TaxExempt") = True Then
> Set ins = Item.GetInspector
> Set pgs = ins.ModifiedFormPages
> Set pg = pgs("PM")
> Set ctls = pg.Controls
> ctls("combobox34").Enabled = False
> else
> Set ins = Item.GetInspector
> Set pgs = ins.ModifiedFormPages
> Set pg = pgs("PM")
> Set ctls = pg.Controls
> ctls("combobox34").Enabled = True
> End If
> End Function
>
> When another user on exchange opens a Task, they get an error saying

cannot
> open the form, will use the default form instead.
>
> Any ideas?
>
> Thanks - Joel
>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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