PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Form Programming Outlook View Control "Hangs"

Reply

Outlook View Control "Hangs"

 
Thread Tools Rate Thread
Old 16-10-2003, 07:02 PM   #1
Anita Gupta
Guest
 
Posts: n/a
Default Outlook View Control "Hangs"


Hello,

I've got a custom contact form with the Outlook View Control on it that
filters the list of contacts in the same folder to show other contacts at
the same company. There are about 30,000 contacts in the folder and when
opening a contact for the first time, Outlook hangs for several minutes
before displaying the contact. Once opened, it can be opened again very
rapidly and all information displays correctly. Is there anyway to speed
this up? I'm assuming that Exchange is cacheing the list of company names,
but should it be doing this for every contact or just the first time a
contact is opened? Here is my code:

Sub Item_Open()

If Not Item.CompanyName = "" Then

Set myView = Item.GetInspector.ModifiedFormPages("Company
Contacts").Controls("myVC")

myView.Folder = "\\Public Folders\All Public Folders\Candidates"

myView.Restriction = "[CompanyName] = """ & Item.CompanyName & """"

myView.View = "View Control"

End If

End Sub


  Reply With Quote
Old 24-10-2003, 02:15 PM   #2
Sue Mosher [MVP]
Guest
 
Posts: n/a
Default Re: Outlook View Control "Hangs"

It's going to set a new filter for each item that uses a different company name. 30,000 contacts is a lot to have in one folder; I hope you have multiple processors on that box and a lot of RAM. Also note that you may run into problems because of restriction caching. I'm not sure whether it applies when the OVC is used, but I suspect it does. See http://www.slipstick.com/exs/pfshare.htm#problems, under folder's slowing down.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"Anita Gupta" <anitagupta@acedsl.com> wrote in message news:equJl%23AlDHA.2512@TK2MSFTNGP09.phx.gbl...
> Hello,
>
> I've got a custom contact form with the Outlook View Control on it that
> filters the list of contacts in the same folder to show other contacts at
> the same company. There are about 30,000 contacts in the folder and when
> opening a contact for the first time, Outlook hangs for several minutes
> before displaying the contact. Once opened, it can be opened again very
> rapidly and all information displays correctly. Is there anyway to speed
> this up? I'm assuming that Exchange is cacheing the list of company names,
> but should it be doing this for every contact or just the first time a
> contact is opened? Here is my code:
>
> Sub Item_Open()
>
> If Not Item.CompanyName = "" Then
>
> Set myView = Item.GetInspector.ModifiedFormPages("Company
> Contacts").Controls("myVC")
>
> myView.Folder = "\\Public Folders\All Public Folders\Candidates"
>
> myView.Restriction = "[CompanyName] = """ & Item.CompanyName & """"
>
> myView.View = "View Control"
>
> End If
>
> End Sub
>
>

  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