Results 1 to 5 of 5
  1. #1
    TagYoureIt is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    3

    Date() in query runs extremely slow on Windows 7

    I'm not sure if this is an Access issue or a Windows 7 issue. I've recently had my desktop at work upgraded from Windows XP to Windows 7. Now all my queries that use the date() function have come to a crawl. I query that would take 5 seconds before (and still does on my laptop that has not yet been upgraded) easily takes over a minute. I've narrowed it down to whether or not I use date(). Using a criteria of 03/05/201 is 3 on the date Activity_Date field is fine, it takes just a second or two to run. If I use date()-10 instead, it easily takes over a minute.

    Since the company has greatly restricted access on machines that have migrated to Windows 7 we believe it might be related to that (myself and the IT guy I'm working with), however we have no idea what would cause things to slow down when using date(). We have tried having the IT guy logging in since he has admin rights, but that has made no difference.



    Any suggestions?

    EDIT: This problem does not occur if querying a locally stored table, it happens when querying a OBDC linked table.
    Last edited by TagYoureIt; 03-15-2013 at 08:12 AM. Reason: Addtl Info

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Is it an issue if you use Date() or when using Date() in an expression like you show in post?

    Is your computer new with Windows7 or was it an old computer with software upgrade?

    Have you tried on another Windows7 machine?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    TagYoureIt is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    3
    I tried just having date() as an additional field and it still runs extremely slow.

    I've tried it on three different Windows 7 machines. My desktop was initially running Windows XP and upgraded to Windows 7. Since we thought the migration may be part of the problem, we wiped the drive and did a fresh install of Windows 7.

    After several hours with IT remoted in to my machine, we came up with a work around. If I set the criteria to "> #01/01/2013# and > date() - 10" then it runs fine. Again we don't know why we need to do this on Windows 7 with Access 2010 but not on Windows XP with Access 2010.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Very interesting. We are starting to get Windows7 in our office, all new machines have it. So far not many quirks. I have one new machine that one piece of code doesn't work on but on an even newer machine it is fine. Bizarre!
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    TagYoureIt is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    3
    Well it seems to be specific to when I'm pulling data from an ODBC linked table. Pulling data from local tables is fine. I even tested where I had a linked table and a local table together with a relationship between them and used the Date() as a criteria on the local table and it ran fine. I have even tried multiple versions of Oracle to see if there was something with the drivers.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 11-19-2012, 03:23 AM
  2. Query runs fine but report doesnt work
    By endri81 in forum Queries
    Replies: 4
    Last Post: 04-28-2012, 02:35 PM
  3. Need help with extremely simple database
    By jvsbarde in forum Access
    Replies: 1
    Last Post: 08-11-2011, 02:14 PM
  4. Extremely simple ACCESS DB
    By austin3i62 in forum Access
    Replies: 1
    Last Post: 02-07-2008, 11:51 AM
  5. Form that runs query and creates reports
    By Valeda in forum Forms
    Replies: 2
    Last Post: 05-04-2006, 07:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums