PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Form Programming OVC Restriction on Public Form = Unknown Exception

Reply

OVC Restriction on Public Form = Unknown Exception

 
Thread Tools Rate Thread
Old 26-08-2004, 05:01 PM   #1
Chris Fannin
Guest
 
Posts: n/a
Default OVC Restriction on Public Form = Unknown Exception


This is really starting to irk me. Once again, I'm getting an "Unknown
Exception" when setting the Restriction on an OVC.

'****************************************************
Set vfolder = HostFolder.Folders("Account Products")
Set vfolder = vfolder.Folders("Notes")
Set myView = Item.GetInspector.ModifiedFormPages("Support
Notes").Controls("SONotesList")
myView.DeferUpdate = True
myview.Folder = sObj.returnfolderpath(vfolder)
myview.view = "SalesOutlook List"
myview.Restriction = "[AProductID] = " & "'" &
item.userproperties.find("AProductID") & "'"
myView.DeferUpdate = False
Set myView = Nothing
'****************************************************

It errors out on the Restriction line. If I comment it out, the OVC
shows the correct folder. The "AProductID" is defined correctly. It's
at the folder level and appears in the ONE item that is contained in
the folder (it's a brand-new folder).

What is going on with this thing?

I'd appreciate it if the responder could do so at my original post
location:
http://www.outlookcode.com/threads....&messageid=6903

I found someone else had this problem a year ago on this group:
http://groups.google.com/groups?q=o...ogle.com&rnum=1
  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