PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Form Programming
OVC Restriction on Public Form = Unknown Exception
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Form Programming
OVC Restriction on Public Form = Unknown Exception
![]() |
OVC Restriction on Public Form = Unknown Exception |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

