Results 1 to 4 of 4
  1. #1
    lwarren is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2016
    Posts
    2

    date parameter queries with wild card


    I know I've got something wrong here: Between "*" & [Start Date? (MM/DD/YY)] & "*" And "*" & [End Date?(MM/DD/YY)] & "*"

  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
    I don't think wildcards work well with dates. Are you looking to cover them leaving a parameter blank? Try this type of thing:

    Between Nz([Start Date? (MM/DD/YY)] , #1/1/1900#) And Nz([End Date?(MM/DD/YY)] , #12/31/2029#)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    lwarren is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2016
    Posts
    2
    I was trying to do two things either choose parameters for a specific time from to/from date or show all if no parameter is entered. What you provided works. Thanks.

  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,652
    No problem, and welcome to the site!
    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. drill down and wild card criteria
    By Jen0dorf in forum Access
    Replies: 3
    Last Post: 02-12-2016, 12:12 PM
  2. QUERY: Date/Time with a wild card as criteria?
    By excellenthelp in forum Access
    Replies: 3
    Last Post: 04-21-2015, 03:06 PM
  3. Criteria from form to query with wild card
    By SteveW in forum Queries
    Replies: 3
    Last Post: 04-01-2011, 07:49 PM
  4. DoCmd.ApplyFilter with wild card
    By cksm4 in forum Programming
    Replies: 3
    Last Post: 10-05-2010, 08:24 AM
  5. Import with a wild card
    By ukgooner in forum Import/Export Data
    Replies: 3
    Last Post: 09-09-2009, 08:08 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