Results 1 to 4 of 4
  1. #1
    Drmaster is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    2

    Cool why are my date queries returning data not requested?

    Hi, New to the forum and fairly new with Access. running xp pro sp3 and access 2010.

    I am trying to design a reporting database and one of my queries is to sort my (currently 187) records into monthly groups which will subsequently be re-queried for further info.
    right now my query works but i have 2 records showing a 9/25/2012 date that are being included in the results and with this query,

    "where [Open Time]">#10/1/2012 7:00:00 AM# (open time is the field name and is short date formatted)

    those 2 September dated records should not be included in the record set but are.
    Is there a flaw in my query causing it to pick up those dates?

    any help for this would be appreciated.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    What is the actual SQL of your query? The quotes in that confuse the issue. Is the data type of that field actually date/time, or could it be text?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Drmaster is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jan 2013
    Posts
    2
    Field is a date/time format and that above was what i ran as the query, exactly as entered

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Then try without quotes, and that's not a complete query anyway, which is why I asked.

    where [Open Time]>#10/1/2012 7:00:00 AM#
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 4
    Last Post: 01-18-2013, 02:41 PM
  2. Querying multiple queries, returning duplicates
    By Gabriel2012 in forum Queries
    Replies: 3
    Last Post: 12-04-2012, 12:39 PM
  3. Replies: 2
    Last Post: 08-10-2012, 12:28 AM
  4. Union Query Returning Different Data
    By deluga.69 in forum Queries
    Replies: 2
    Last Post: 08-15-2011, 01:47 PM
  5. Queries not returning data
    By Verso in forum Queries
    Replies: 1
    Last Post: 08-11-2011, 01:46 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