Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Interop / February 2007

Tip: Looking for answers? Try searching our database.

Querying Outlook items

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Johnny E. Jensen - 06 Feb 2007 19:19 GMT
Hey Group

I have made a routine that fetches some outlook appointments using the
Items.Find method. The Query looks like [Start] >= "01-02-2007 00:00" and
[Start] <= "06-02-2007 23:59"

I works just fine and with good performance.

Another routine i want tobuild is to fetch items from the Inbox and also
using the query method Find. But I'am not sure what the query field name is.
I've trying with the [ReceivedTime] >= "01-02-2007 12:00:00" and
[ReceivedTime] <= "06-02-2007 23:59:59"

The date format is in Danish, i'ev tryed with US format 2007/02/01 but i'll
get the error:
Type mismatch or the value "{date}" in the condition is not valid.

Can anyone help me here, I don't like the way of fetching all items within
the inbox folder, and then drill though to fetch items that meets the above
query for ReceivedTime. Not a good performance, and when keep in mind, after
the inbox i'll also have to get the sentbox ....

Kind regards
Johnny E Jensen
Ken Slovak - [MVP - Outlook] - 06 Feb 2007 20:45 GMT
Try leaving off the seconds for any Find or Restrict.

For some properties where a time isn't shown you also leave off the hours
and minutes, such as Task.DueDate.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hey Group
>
[quoted text clipped - 20 lines]
> Kind regards
> Johnny E Jensen
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.