View Single Post
  #1  
Old June 26th 09, 05:12 PM posted to microsoft.public.outlook.program_vba
MB34
external usenet poster
 
Posts: 15
Default Restrict Appointments by EntryID not working

(Using Delphi)
Trying to restrict AppointmentItems by EntryID like below:

Folder := Namespace.GetDefaultFolder( olFolderCalendar );
Items := Folder.Items;
AppointmentItems := Items.Restrict('[EntryID] = "' +
qryEvents.fieldByName('OLEntrytID').AsString + '"');

But getting this error:
-2147352567 "Condition is not valid"

I *KNOW* that the VALUE is valid.

Am I doing something incorrectly?
Ads