I need to read the entries for a number of users from shared calendars. For this, I am using the command ...
if objOwner.Resolved Then
This works fine and I can read in the entries for the users I need. But somehow duplicate entries are being read in for users which are invalid for the time period I am querying.
I use this filter to set the period I am reading ...
strFilter = "[Start] >='" & strPeriodFrom & "' AND [End] < '" & strPeriodUntil & "'"
... which works fine and retrieves the period I need.
But the problem is that duplicates of valid entries during that time period appear for users who have no entries in that period.
So my question is how do I keep them out? What am I doing wrong?
Can I maybe add a "User" or "Email" filter to strFilter (i.e. my time period)?
This is a big irritation because surely the time-filter should keep those entries out. And indeed the entries apply to another use and are valid for that (other) user but not for the unwanted one.
Or maybe someone can point me towards a good snippet of code which does this?