Results 1 to 3 of 3
  1. #1
    ahmed sami is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2014
    Location
    Baghdad Iraq
    Posts
    8

    Date type mismatch in criteria expression

    I have a query that is based on another query, in its criteria i have already put the following sql statement:


    Between DateAdd("m",-10,Now()) And DateAdd("m",10,Now())
    such that once run, it displays only dates that fall in this range. It was Ok for long time, but with out a specific reason it started to display the following message:
    Date type mismatch in criteria expression, then turns every thing to #Name
    Any help with be great. Thanks.

  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,652
    Is it possible there's a Null in the date field?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    The error may not be in the "Between" - it may be in some other part of the expression.

    Can you post the complete SQL of the query?

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

Similar Threads

  1. Data type mismatch in criteria expression
    By khughes46 in forum Queries
    Replies: 12
    Last Post: 05-01-2014, 07:34 AM
  2. Data Type Mismatch in Criteria Expression
    By dehdahdoh in forum Queries
    Replies: 13
    Last Post: 05-01-2013, 11:41 AM
  3. Data type mismatch in criteria expression
    By bobt_1234 in forum Queries
    Replies: 3
    Last Post: 02-13-2012, 03:37 PM
  4. Data Type mismatch in criteria expression
    By elb1999 in forum Queries
    Replies: 2
    Last Post: 01-20-2012, 02:38 PM
  5. Data type mismatch in criteria expression
    By shexe in forum Queries
    Replies: 2
    Last Post: 09-01-2010, 12:47 PM

Tags for this Thread

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