![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
(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? |
#2
|
|||
|
|||
![]()
On Jun 26, 11:12*am, MB34 wrote:
(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? According to Sue Mosher: If you looked up Restrict in Help, you'd quickly learn that EntryID is one of the fields you can't use. Instead, you should be using the Namespace.GetItemFromID method. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
News Appointments not working | peke | Outlook - Calandaring | 0 | June 24th 09 04:11 PM |
Automatic Accepting of APpointments not working | Rachel Moreaux | Outlook - Calandaring | 3 | January 26th 09 09:17 PM |
How to restrict overlapping appointments | BigChief_Nor | Outlook - Calandaring | 0 | November 1st 06 01:00 PM |
Using Restrict on recurring appointments with Exceptions deliveries wrong results!!!! | Lucia | Outlook and VBA | 8 | August 31st 06 08:59 AM |
Calendar events/appointments working spottily | Brent White | Outlook - Calandaring | 1 | March 28th 06 03:45 PM |