A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Restrict Method DNW



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old March 21st 06, 06:56 PM posted to microsoft.public.outlook.program_vba
emanson
external usenet poster
 
Posts: 13
Default Restrict Method DNW


Any idea why the following does not work (Returns all items in collection):

strFind = "[FlagRequest] " & Chr(34) & Format(DateTo, "ddddd h:nn AMPM") &
Chr(34) & " AND [FlagRequest] = " & Chr(34) & Format(DateFrom, "ddddd h:nn
AMPM") & Chr(34)
Set myItms = objFolder.Items
Set myItms = myItms.Restrict(strFind)

Please let me know if you need more information. I have also tried the
above using [ReceivedTime] rather than my user defined [FlagRequest] to no
avail. Any help would be greatly appreciated.

Thanks!
Ed


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Restrict in Multiple languages Ramesh Add-ins for Outlook 0 February 28th 06 06:41 AM
GetItemFromID method on a public folder in the namespace Robert Squire Outlook and VBA 1 February 24th 06 01:31 PM
Best method for using Outlook out of the office Bob Outlook - General Queries 1 January 31st 06 02:05 AM
Need method similar to GotFocus for customised Contact form Michael Anderson Outlook - Using Forms 0 January 24th 06 11:11 PM
Restrict jim Add-ins for Outlook 2 January 13th 06 08:14 PM


All times are GMT +1. The time now is 07:07 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.