Outlook 2010 Restrict Method with Dates

Hey Guys,
I am attempting to match a date to an outlook date by using the restrict method but it is not working:
dbrec = date i am pulling from access table (originated from Outlook)
emrec = item.receivedtime
Initially i tried: (did not work)
For Each item In myfldr.items.Restrict("[ReceivedTime] = '" & dbrec & "'")
So Microsoft stated the do the following: (did nto work)
For Each item In myfldr.items.Restrict("[ReceivedTime] = '" & Format(dbrec, "ddddd h:nn AMPM") & "'")
Any assistance would be amazing!!!
Below are immediate window entries that show the dates are the same:
?emrec
3/17/2015 12:26:30 PM
?dbrec
3/17/2015 12:26:30 PM
?emrec = dbrec
True

Never use "=" when working with date/time in restrictions. Always use a range, e.g. plus/minus one second:
([ReceivedTime] > '3/17/2015 12:26:29 PM') AND
([ReceivedTime] < '3/17/2015 12:26:31 PM')
Dmitry Streblechenko (MVP)
http://www.dimastr.com/redemption
Redemption - what the Outlook
Object Model should have been
Version 5.5 is now available!

Similar Messages

  • Outlook 2010 SP1 Sync with the iCloud

    Problem: Contacts do not sync.  Calendar Items sync.  They do not appear in iCloud.com or on my Iphone.
    It appears items sync from the Iphone to the iCloud and to Outlook.  The problem is items syncing from Outlook to the iCloud.
    I rebooted the PC thinking it migh jump start the sync from Outlook to the iCloud. 
    I also tried unchecking Contacts in iCloud PC Control Panel, applied the change and then reverted the change hoping that woud jump start the sync from Outlook.
    There are no errors.
    iCloud Control Panel is installed
    Windows 7 64 bit version SP1
    Outlook 2010 Sp1is install (32 bit Version)
    Outlook Itunes Addin is running
    Outlook iCloud  Addin is running
    Outlook PST Maintenance
    PST was compacted
    Ran ScanPST with fix option to eliminate any PST issues
    Itunes Configuration Information
    Itunes is not configured to sync Contacts or Calendar
    iCloud Windows Control Panel
    Is set to sync Contacts and Calendar
    Iphone 4 is set to sync with iCloud.
    Any ideas would be appreciated

    frandango,
    I had the 3 calendar issue but through trial and error figured it out.  I would not want to say which of the three is syncing to iCloud but I can offer this.
    It has to be in the iCloud Folder.
    I would add an event, wait for a sync and look on your iphone etc to see if its there.  Then you'd know which calendar is yours.
    Also it is possible you have 2 calendars in iCloud.  This function is supported.  If one looks in the upper corner of their calendar on their device (ipad etc) there is a button to choose which calendars are displayed.  So you could be overlaying calendars on your device.
    In my case I don't need more than one calendar so I found which one was the one that had my events and deleted the other/s.  I then renamed it a simple name "Calendar - iCloud"
    I did the same for contacts, and tasks ("to do" list is now useless).
    I left my notes in the default file, and checked sync through itunes.
    I did this becaue the type of notes that iCloud creates are subpar in my opinion.
    The default calendar is now not used by me.  However this creates a lot of functionality issues with outlook.  As the icloud data file is not the default the navigation bar buttons, defaults are still the original data file and useless.  I did try and change my iCloud file to the default but it crashed the program and was a nightmare to return to a working condition.

  • I cannot make my Outlook 2010 calendar/tasks/contacts sync with the calendar on my iPhone 5, I cannot make my Outlook 2010 calendar sync with the calendar on my iPhone 5

    I have wasted so many hours trying to make this work and researching Apple support.  Nothing works so I am hoping to get an answer here.
    First of all, here is what I am using:
    Windows 7 32 bit
    Outlook 2010
    iPhone 5 and iPad 3
    iOS 7.0.2 on both devices
    I have downloaded the iCloud app for my Windows computer and checked that it sync my contacts, calendar, and tasks.  I have enabled iCloud on my phone for contacts, calendars and tasks.  I have not been able to get anything to sync.  My iCloud calendar appears in Outlook but everything is grayed out.  I see the iCloud reminders under my tasks tab but there is nothing listed.
    I have uninstalled and reinstalled iCloud on my Windows computer.  I have turned off the calendars, tasks, and contacts sync under iCloud on my phone and turned them back on - nothing.  I have restarted my computer and iPhone - nothing.  Same results with my iPad - nothing.
    Additionally, I have gmail as my personal email; also am forced to use Good for Enterprise for my work email. 
    I am at my wits end.  I finally ended up syncing today with the USB cable via iTunes but the whole point behind iCloud is to be able to sync wirelessly. 
    ANY help would be greatly appreciated.

    Hello there janis143,
    Thank you for using Apple Support Communities.
    It sounds like after the recent iOS update, your Outlook content is no longer syncing properly to your phone.
    I found this article named:
    iPhone, iPad, iPod touch: Troubleshooting contact and calendar syncing via USB on Windows
    http://support.apple.com/kb/HT1692
    I recommend the troubleshooting steps therein.
    All the very best,
    Sterling

  • Outlook 2010 - sending mail with attachment - "The system cannot find the file specified"

    Hi forum Fellows,
    I have the following failure scenario:
    1. A user receives an e-mail with an attachment.
    2. The user opens the attachment --> Forwards the mail and writes something in the body of the e-mail
    3. For whatever reason the user leaves the e-mail and works on something else --> the user comes back to the e-mail an hour or more later.
    4. The user then wants to send the e-mail but gets the following error message: "The system cannot find the file specified"
    5. The effect is that the user cannot send the e-mail.....
    ------------------------------ TROUBLESHOOTING -----------------------
    - I can see that when the user opens an attachment this attachment is saved in the OutlookTemp folder. Actually, there is a difference between opening the attachment before or after clicking forward on the e-mail.
    ---- Before: Two files is written to the OutlookTemp folder. For example if the attachment name is FileX.pdf - there will be a FileX.pdf but also a FileX (2).pdf in the folder (if OutlookTemp is empty/do not contain a file with the name FileX.pdf already)
    ---- After: Only one file is written to OutlookTemp. That is FileX.pdf
    - Running Process Monitor when trying to forward the e-mail I can see that Outlook is calling a file that is not in the OutlookTemp folder anymore.
    **** To me this is the heart of the issue. For some reason, when a user has an e-mail with an attachment open for an extended period of time (not sure on exactly how long is necessary), files in the OutlookTemp folder is deleted - files that Outlook is depending
    on to be there.
    - Going with a totally clean OutlookTemp folder does not help.
    ------------------ NOW WHAT ---------------
    - The question now is: Is this by design? Can it be fixed by some Outlook 2010 patch? Or perhaps a group policy/registry setting as a workaround.
    ------------------------------ TECH. INFO -----------------------
    Outlook 2010 v14.0.7132.5000
    Outlook bit depth: x86
    Running on a 2008R2 SP1 TS environment.
    No antivirus on the TS
    Looking forward to hear from you.
    Regards The Red Baron
    Red Baron

    Hello Red Baron,
    Although not a complete answer, the way to treat attachments in emails require some discipline:
    1. Never open an attachment directly from the email (and NEVER edit it from there). Always save it in a known location as the desktop or (better) in a designated document folder. Then you can proceed as usual, like editing the contents, printing, forwarding
    the new version etc.
    2. Directly forwarding the attachment is ok, along with additional text in the body of the email.
    3. Having any (unsaved) document open for several hours should
    never occur. What if there is a power outage?
    Bottom line is thus Discipline. This is regardless of Operating System (which might handle temporary files differently).
    These are the rules I teach my customers and they never leave any document unsaved for hours ...
    Best regards George

  • New events on Outlook 2010 not syncing with Iphone and Ipad

    I have gone through the nonsensical uninstall/reinstall every 5 restars. This time my new events or contacts on Outlook do not show on iPhone or Ipad. There is also a new confirguration where the Outlook does not separate the iCloud calendar from Outlook calendar but lists them all, then iCloud as a separate box at the bottom. I've tried dragging to that box with no success. I make about 50 appointments and reminders to my calendar each week and use all devices whether in the office or out. How dare Apple not fix this known issue.

    I just looked at topic called "Outlook 2010 - Outlook does not sync with iPhone / iTunes and used the fix suggested in that string of posts. It appears to have worked!!! My happy camper.

  • Why is it when you set a calender event in outlook 2010 (in UK) with a reminder alarm for 30mins prior) and have the iphone set to keep the appointment time relative to the local country time that you travelled to, the alarm time is still at uk time ?????

    why is it when you set a calendar event in outlook 2010 (whilst i am in UK) with a reminder alarm for 30mins prior to the appointment time) and have the iPhone set to keep the appointment time relative to the new country time that i have travelled to (this works OK), the alarm time is still relative to the UK time and not in sync with the local country time like the main appointment is.
    Does anyone know the answer please.

    This has to do with the Time Zone Support selected in your phone. If you check in Settings>Mail, Contact, Calendars, there is a setting for Time Zone Support at the bottom of the page under Calendars. If that is turned to off, the calendar should support the local time. Because time is set to Automatic (since you say the time is correct on the iPhone), it is reflecting the local time. That information comes from the carrier, not the iPhone itself. You can check, however the iPhone says that if you turn off the Time Zone support, it should reflect in the local time. Do a test, if possible,  and see if that will do what you are asking.

  • Outlook 2010 not working with I cloud control panel.

    Using:
    Windows 7 PC
    Outlook 2010
    Problem free use untill now.
    As of a 4 days ago my icloud control panel stopped syncing with my tasks, contacts and calenders to my Icloud account I am using as metioned outlook 2010 , I dont even see the I cloud sycn/refresh button located in the tool bar in outlook 2010. I have been using this plug in for nearly a year with out any problems untill now.
    My Email works just fine.
    I have tried signing in and out of I cloud, uninstalling the icloud conroll panel, using the repair function, uninstalling the Out 2010 non of which have helped.
    ha anyone else had this problem or have an idea on how to resolve it?
    Thanks

    Why are you running Pocket Mirror, do you have a Palm device?
    Uninstall Pocket Mirror, delete the 2 Pocket Mirror calendars, ignore 'My Calendar' the iCloud calendar is the one to use.
    If you do not uninstall Pocket Mirror the calendars will keep recreating themselves

  • Outlook 2010 behaves strange with exchange 2013

    Hello,
    I imported a san certificate with a domain name for local use. This is exchange.xxxx.xx . This is also a A-record pointing to the same ip of the actual server.
    The name of the exchange server itself is mail01.xxxx.xx .
    My laptop is not a part of the domain. When i want to add my mailbox i use exchange.xxxx.xx for the server. My username can't be resolved. When i use the name of the server mail01.xxxx.xx then it works.
    I tested this with outlook 2013 and exchange.xxxx.xx could resolve my mailbox.
    So for outlook 2010 i need to use the name of the server where exchange 2013 is installed.
    For outlook 2013 i can use the alias exchange.xxxx.xx.
    Anyone has any idea ? It's not blocking. We haven't started the migration yet :p

    Hi,
    Based on my knowledge, in Exchange 2013 environment, the server name option is filled with the new type"mailbox GUID+@+ the domain portion of the user's primary SMTP address" when we configure the Exchange account in Outlook client.
    In your case, I recommned you add the following record in the host file of the computer which installs the Outlook 2010: the host name Exchange.domain.com points to your server IP address .
    Thanks,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Angela Shi
    TechNet Community Support
    Thx for your feedback. I will check this out.

  • Outlook 2010 duplicates mail with setting Leave mail on sever, Delete After n days and pressing Send/Receive All folders

    The setting Leave mail on the server and Delete after n days and Pressing Send/Receive all folders causes outlook 2010 to duplicate all mails of the last n days over and over again.
    If I leave outlook 2010 open this problem does not occur, mail will be retreived without a problem. If I leave Outlook 2010 open for a long time and then press Send/Receive all folders it does work ok. If I restart Outlook 2010 and then press Send/Receive
    all folders the problem occurs.
    The pst file is a new one. OTher mail accounts that do have Leave mail on the server but not Remove after n days do not have the duplicating behaviour.
    I have manually removed 6400 duplicate mails, if Microsoft does not solve this urgent problem soon I need to remove Office 2010 from my computer and go back to Office 2007, Office 2007 worked fine for me.
    Is there a solution fir this problem, or a free tool to remove all duplicates?

    Dear Pieter,
    I suggest creating a new Outlook profile, and create the problematic account in the new profile, to see if the problem occurs.
    Here are the detailed steps on how to create a new profile to test this issue
    ==============
    1.    Exit
    Outlook.
    2.    Go to
    Start > Control Panel, click or double-click
    Mail.
    Mail appears in different Control Panel locations depending upon the version of the Microsoft Windows operating system, Control Panel view selected,
    and whether a 32- or 64-bit operating system or version of Outlook is installed.
    The easiest way to locate
    Mail is to open Control Panel in Windows, and then in the
    Search box at the top of window, type Mail. In
    Control Panel for Windows XP, type Mail in the
    Address box.
    Note    The Mail icon appears after Outlook starts for the first time.
    The title bar of the Mail Setup dialog box contains the name of the current profile. To select a different existing profile, click Show Profiles, select
    the profile name, and then click Properties.
    3.    Click
    Show Profiles. Choose Prompt for a profile to be used.
    4.    Click
    Add.
    5.    Type a name for the profile, and then click
    OK. Please also follow the onscreen instructions to create the email account in this profile.
    6.    Start
    Outlook, and choose this new profile.
    If this problem does not occur in the new Outlook profile, the old Outlook is corrupted. We can delete that and use a new Outlook profile.
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything
    I can do for you, please feel free to let me know.
    Best Regards,
    Sally Tang

  • Find method with dates

    Hellow ,
    I want to create a find-method that should represent following statement :
    select * from emp where date > to_date( '24/01/2002', 'dd/MM/yyyy' );
    I defined in my EJB-home-method something like this ...
    public Collection findByStukEname( String date ) throws RemoteException, FinderException;
    Then I deployed to a J2ee-server ...
    and in the orion-ejb-jar.xml I changed the finder-method into ...
    <finder-method query="select * from emp where date > to_date( $1 , 'dd/MM/yyyy' )" partial="false">
    <method>
    <ejb-name>EMP</ejb-name>
    <method-name>findByStukEname</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method>
    </finder-method>
    But i doesn't work ? Did I make a mistake ?? Is there a beter way to do it ?? ( maybe working with java.util.Date ?? )
    Greetz
    Steven

    Hi Steven,
    OC4J uses an instance of java.sql.PreparedStatement to execute your
    "finder" method. Now you have defined a member of your bean class that will be inserted into your query string in place of the "$1".
    I'm guessing that this member is an instance of "Date" (either
    java.util.Date or java.sql.Date). If that is the case, then you need
    to change your query string to
    select * from emp where date > $1
    Also, you may not be aware of this, but I always use java.sql.Timestamp
    when mapping EJB members to DATE columns in the Oracle database tables.
    (Not java.sql.Date)
    Hope this helps,
    Avi.

  • PowerPivot in SharePoint 2010 - Refresh Excel with Data Feed does not work

    Dear all,
    I created a PowerPivot chart out of a SharePoint exported list to Data Feed.
    I then published it to a trusted Document Library.
    The Chart is working well but is not updating.
    So if I go to the document library and on the drop down meny of the publsihed excel file I choose Manage PowerPivot Data Refresh and force it to refresh, it fails with the following error message>
    Errors in the high-level relational engine. The following exception occurred while the managed IDbConnection interface was being used: The remote server returned an error: (401) Unauthorized.. A connection could not be made to the data source with the DataSourceID
    of '3b4d4c28-909c-47d3-b4d6-07684f5e2ee9', Name of 'DataFeed mywebapp.domain TestPowerPivotDataFeed'. An error occurred while processing the 'testPowerPivot' table. The operation has been cancelled.
    On the SQL Server I ran a profiler and got the follwoing:
    exec [DataRefresh].[AddRunDetails] @RunID=54,@DataSourceID=N'3b4d4c28-909c-47d3-b4d6-07684f5e2ee9',@FriendlyName=N'DataFeed mywebapp.domain.local TestPowerPivotDataFeed',@Source=N'http://portal.gonzofish.local',@Provider=N'Microsoft.Data.DataFeedClient',@Catalog=N'dev/scrum/Data
    Feed Library/TestPowerPivotDataFeed.atomsvc',@ConnectionString=N'Data Source=http://mywebapp.domain.local/dev/sc/Data%20Feed%20Library/TestPowerPivotDataFeed.atomsvc;Integrated Security=SSPI;Persist Security Info=false;Namespaces to Include=*;Service Document
    Url=http://mywebapp.domain.local/dev/sc/Data%20Feed%20Library/TestPowerPivotDataFeed.atomsvc',@Result=N'F',@RunStartTime='2014-06-04 15:33:04.590',@RunEndTime='2014-06-04 15:33:04.727',@Comments=N'Errors in the high-level relational engine. The following exception
    occurred while the managed IDbConnection interface was being used: The remote server returned an error: (401) Unauthorized..
    A connection could not be made to the data source with the DataSourceID of ''3b4d4c28-909c-47d3-b4d6-07684f5e2ee9'', Name of ''DataFeed mywebapp.domain.local TestPowerPivotDataFeed''.
    An error occurred while processing the ''testPowerPivot'' table.
    The operation has been cancelled.
    I followed the link http://technet.microsoft.com/en-us/library/hh487291%28v=office.14%29.aspx to set up the Data Refresh for the PowerPivot.
    Thanks in advance.
    Regards,
    Gonçalo
    Gonçalo

    Hi Gonçalo,
    The error message shows that the account didn't have sufficient permission access to the data source(SharePoint List data feed). PowerPivot data refresh is performed by Analysis Services server instances in the SharePoint farm, we may need to grant the
    account running SQL Server Analysis Services (POWERPIVOT)
    Read permissions to the SharePoint list we are attempting to refresh.
    In addition, the external data sources that are accessed during data refresh must be available and the credentials you specify in the schedule must have permission to access those data sources.
    For more information, please take a look at the following article:
    Schedule a Data Refresh:
    http://technet.microsoft.com/en-us/library/ee210651(v=sql.110).aspx
    Hope this helps.
    Elvis Long
    TechNet Community Support

  • TS2776 Any ideas why my Outlook 2010 is syncing with iCloud for e-mail but not for contacts and calendars?  I am not a novice user and have done all the obvious things. The situation is odd because the original calendars all came from Outlook in the first

    I use iMac, iPad and iPhone but also an HP laptop. I have used Macs since 1986 so I am not a novice. I set up my iCloud account, moving from MobileMe recently and everything works fine on my Apple devices. The bizarre thing is I can see all my e-mail accounts via iCloud in Outlook but the contacts and calendars are not syncing in Outlook even though the original calendar material came from Outlook (the contacts data is all from the iMac). I've tried all the obvious things and read most of the articles on the Apple Support website. All the relevant boxes are checked on the iCloud dashboard on each device but I just wondered if I was missing something obvious. I'm sure some of you will have had the same expereince and solved it. Can you help me?
    Thanks in anticipation!
    T

    I use iMac, iPad and iPhone but also an HP laptop. I have used Macs since 1986 so I am not a novice. I set up my iCloud account, moving from MobileMe recently and everything works fine on my Apple devices. The bizarre thing is I can see all my e-mail accounts via iCloud in Outlook but the contacts and calendars are not syncing in Outlook even though the original calendar material came from Outlook (the contacts data is all from the iMac). I've tried all the obvious things and read most of the articles on the Apple Support website. All the relevant boxes are checked on the iCloud dashboard on each device but I just wondered if I was missing something obvious. I'm sure some of you will have had the same expereince and solved it. Can you help me?
    Thanks in anticipation!
    T

  • Outlook 2010 changing the default data file

    how to change default data files. outlook will not allow me to make a change to the default data file. iu want to make another file the default

    What the type of mail account you use?
    Please go to File > Account setting > Data file > Select your account > Set as Default.
    Thanks.
    Tony Chen
    TechNet Community Support

  • Fiddler for Outlook 2010 to assist with troubleshooting

    When one of our developers troubleshoots their IIS application, they use Fiddler to capture what is happening.
    Is their something similar for Outlook?
    We've had a couple of business partners bless our Exchange environment, but folks still experience Outlook pauses or the infamous gathering data message.
    I know it is add-ins (love safe mode), but we can't live without them.  So, I was hoping that there was a Fiddler like tool for Outlook to assist in troubleshooting.
    It's hard to troubleshoot since it is hard to determine a pattern when it happens randomly. 
    Suggestions are very welcomed.
    Thanks
    Ron

    You can try using OCAT to troubleshoot Outlook issues:
    https://support.microsoft.com/en-us/kb/2812744/en-us
    Flynn

  • Outlook 2010 gets disconnected with Exchange 2010

    Hi
    We are facing a strange issue that some Outlook users are getting disconnected and it reconnects after 1 or 2 hours or after changing the IP of the system. During the Outlook disconnection period we can't even telnet on port 433 to the CAS BLB name or IP
    (same time we can able to ping CAS name). The security and network team is checking the same, is there any thing to be checked with Exchange servers regarding this issue?
    Thanks in Advance
    LMS

    Also I found a similar article "http://social.technet.microsoft.com/Forums/exchange/en-US/06f4d721-a778-4437-b43a-9ad6ca70344b/outlook-clients-randomly-disconnected-from-cas-array?forum=exchange2010"
    which almost explains the same issue - users are getting disconnected and even unable to telnet teh cluster IP and getting connected after a few minutes.
    So we will go ahead and re configure the NLB. We plan to keep the existing NLB on one server and remove and add second node and do the same for the other. What do you think?
    LMS

Maybe you are looking for

  • Not able to see the crystal reports XI version in the IE 7 and IE 8

    Hi Team, I am using web based application developed in VB,ASP,SQL SERVER,Crystal Reports(XI). I am able to see the Crystal Reports in IE 6. But i am not able to see the reports in IE 7 and IE 8. While clicking on the reports button it is showing the 

  • How do you download an older version for App World

    i tried rebooting it, it still doesnt appear on my homepage... i checked on the applications, it is there.. how to find it? MOD EDIT: Subject changed to reflect a new topic

  • Help! Best setup for using A3 with a Drobo?

    A little over a month ago, I decided to get "serious" with my photography hobby and plunked down several hundred bucks for a Drobo (4-bay, FireWire800), a couple 1TB drives to go in it, and a copy of Aperture 3. It took a couple tries (and a couple d

  • Financial Accounting Hub(FAH)

    Hi Friends, Where can I access Financial Accounting Hub(FAH) responsibility in Oracle R12? I want to study it to customize the source setup, etc. Thank you. Best regards, Ning

  • Burning 90-min (800 MB) CD-Rs

    My G4 has this optical drive built in: HL-DT-ST RW/DVD GCC-4481B. Does anyone know whether it will burn 90-minute (800 MB) CD-Rs? Data or Audio? I was told that the reason why most shops (even, e.g., ProTape) no longer stock CD-R 90s is that so many