Results 1 to 4 of 4
  1. #1
    King102 is offline Novice
    Windows 10 Access 2016
    Join Date
    Aug 2018
    Posts
    3

    Between 2 dates command does not work

    So I using Quey to find dates between for example Feb 1 to Feb 28 but when I run the Query this shows up Click image for larger version. 

Name:	Capture.PNG 
Views:	15 
Size:	84.8 KB 
ID:	34980 it there a way to fix this issue thanks.

  2. #2
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,158
    If you change the query to a select query and bring in the WebOrdID do you get any records returned ?

    And your dates need to be formatted as #2018/02/01# not with a dash
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,938
    @minty - dash will work - sql will assume it is yyyy-mm-dd (ie. 1st Feb in the example provided) - something I learned only recently

    @King - not sure why you need the other tables since you are not applying any criteria to them.

  4. #4
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,424
    it there a way to fix this issue thanks.
    What do you consider the "issue" to be?
    The fact that zero records are about to be updated? That you get the prompt at all? Aside from the observations already made, more info about the desired outcome and what's going on would help, including showing the complete parameter prompt and criteria.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 6
    Last Post: 05-09-2014, 09:03 AM
  2. Can't get 'Between' to work for dates!
    By Dynamo418 in forum Queries
    Replies: 6
    Last Post: 10-11-2013, 01:38 PM
  3. Command button doesn't work when DB is opened
    By buckeye4 in forum Access
    Replies: 3
    Last Post: 02-23-2011, 01:32 PM
  4. Replies: 1
    Last Post: 07-27-2010, 02:27 PM
  5. Replies: 2
    Last Post: 04-23-2010, 01:31 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