M
Michael Kensy
Hi to all,
I developed a ol-form containing outlooks view control and I would like to
restrict shown items on values of that item. My code is working fine as
long as I restrict on items subject for example but I can't get it working
restriction on items contacts.
My code looks like:
***
Private Sub procUpdateViewControl()
If ...
mstrRestriction = "[Contacts] = '" & myItem.Links.Item(1).Name & "'"
elseif ...
mstrRestriction = "[Subject] = '" & _
myItem.UserProperties("ORDER-ID").Value & "'"
else...
End If
mobjViewControl.Visible = False
With mobjViewControl
.Folder = mstrFolder
.View = mctrlControls5("cboFolderViews").Value
.Restriction = mstrRestriction
End With
mobjViewControl.Visible = True
End Sub
***
So is possible to restrict on [contacts]? And secondly os possible to
restrict ovc on userdefined fields too?
I developed a ol-form containing outlooks view control and I would like to
restrict shown items on values of that item. My code is working fine as
long as I restrict on items subject for example but I can't get it working
restriction on items contacts.
My code looks like:
***
Private Sub procUpdateViewControl()
If ...
mstrRestriction = "[Contacts] = '" & myItem.Links.Item(1).Name & "'"
elseif ...
mstrRestriction = "[Subject] = '" & _
myItem.UserProperties("ORDER-ID").Value & "'"
else...
End If
mobjViewControl.Visible = False
With mobjViewControl
.Folder = mstrFolder
.View = mctrlControls5("cboFolderViews").Value
.Restriction = mstrRestriction
End With
mobjViewControl.Visible = True
End Sub
***
So is possible to restrict on [contacts]? And secondly os possible to
restrict ovc on userdefined fields too?